Uses of Interface
org.glassfish.jersey.internal.inject.ForeignDescriptor
-
Packages that use ForeignDescriptor Package Description org.glassfish.jersey.inject.hk2 org.glassfish.jersey.internal.inject Common Jersey internal injection utility classes.org.glassfish.jersey.server.internal.inject Jersey server-side JAX-RS injection support classes. -
-
Uses of ForeignDescriptor in org.glassfish.jersey.inject.hk2
Fields in org.glassfish.jersey.inject.hk2 with type parameters of type ForeignDescriptor Modifier and Type Field Description private java.util.Map<ForeignDescriptor,java.lang.Object>Hk2RequestScope.Instance. storeA map of injectable instances in this scope.Methods in org.glassfish.jersey.inject.hk2 that return ForeignDescriptor Modifier and Type Method Description private ForeignDescriptorAbstractHk2InjectionManager. createAndTranslateForeignDescriptor(Binding binding)ForeignDescriptorAbstractHk2InjectionManager. createForeignDescriptor(Binding binding)Methods in org.glassfish.jersey.inject.hk2 with parameters of type ForeignDescriptor Modifier and Type Method Description booleanHk2RequestScope.Instance. contains(ForeignDescriptor provider)<T> THk2RequestScope.Instance. get(ForeignDescriptor descriptor)Get an inhabitant stored in the scope instance that matches the active descriptor .java.lang.ObjectAbstractHk2InjectionManager. getInstance(ForeignDescriptor foreignDescriptor)<T> THk2RequestScope.Instance. put(ForeignDescriptor descriptor, T value)Store a new inhabitant for the given descriptor.<T> voidHk2RequestScope.Instance. remove(ForeignDescriptor descriptor)Remove a value for the descriptor if present in the scope instance store. -
Uses of ForeignDescriptor in org.glassfish.jersey.internal.inject
Classes in org.glassfish.jersey.internal.inject that implement ForeignDescriptor Modifier and Type Class Description classForeignDescriptorImplThe descriptor holder for an externally provided DI providers.Fields in org.glassfish.jersey.internal.inject declared as ForeignDescriptor Modifier and Type Field Description private ForeignDescriptorInjecteeImpl. injecteeDescriptorMethods in org.glassfish.jersey.internal.inject that return ForeignDescriptor Modifier and Type Method Description ForeignDescriptorInjectionManager. createForeignDescriptor(Binding binding)Creates and registers the descriptor in the underlying DI provider and returnsForeignDescriptorthat is specific descriptor for the underlying DI provider.ForeignDescriptorInjectee. getInjecteeDescriptor()This method returns foreign descriptor of the current injectee that means that the DI provider is able to store its specific descriptor and that use it in the descriptor processing.ForeignDescriptorInjecteeImpl. getInjecteeDescriptor()static ForeignDescriptorForeignDescriptor. wrap(java.lang.Object descriptor)Wraps incoming descriptor instance and provides a default implementation ofForeignDescriptor.static ForeignDescriptorForeignDescriptor. wrap(java.lang.Object descriptor, java.util.function.Consumer<java.lang.Object> disposeInstance)Wraps incoming descriptor instance and provides a default implementation ofForeignDescriptoralong with aConsumerfor a disposing an instance created using a given descriptor.Methods in org.glassfish.jersey.internal.inject with parameters of type ForeignDescriptor Modifier and Type Method Description java.lang.ObjectInjectionManager. getInstance(ForeignDescriptor foreignDescriptor)Gets the service instance according toForeignDescriptorwhich is specific to the underlying DI provider.voidInjecteeImpl. setInjecteeDescriptor(ForeignDescriptor injecteeDescriptor)Sets the descriptor for this Injectee. -
Uses of ForeignDescriptor in org.glassfish.jersey.server.internal.inject
Fields in org.glassfish.jersey.server.internal.inject with type parameters of type ForeignDescriptor Modifier and Type Field Description private Cache<java.lang.Class<?>,ForeignDescriptor>BeanParamValueParamProvider.BeanParamValueProvider. descriptorCacheprivate Cache<Parameter,ForeignDescriptor>DelegatedInjectionValueParamProvider. descriptorCacheWe do not want to create a new descriptor instance for every and each method invocation.private java.util.function.Function<Binding,ForeignDescriptor>DelegatedInjectionValueParamProvider. foreignDescriptorFactoryMethods in org.glassfish.jersey.server.internal.inject that return ForeignDescriptor Modifier and Type Method Description private ForeignDescriptorDelegatedInjectionValueParamProvider. createDescriptor(java.lang.Class<?> clazz)Method is able to create form incoming class andjersey descriptoraForeignDescriptorwhich is provided by underlying DI provider.Constructor parameters in org.glassfish.jersey.server.internal.inject with type arguments of type ForeignDescriptor Constructor Description DelegatedInjectionValueParamProvider(LazyValue<ContextInjectionResolver> resolver, java.util.function.Function<Binding,ForeignDescriptor> foreignDescriptorFactory)Injection constructor.
-