Uses of Interface
org.glassfish.hk2.api.ActiveDescriptor
-
-
Uses of ActiveDescriptor in com.sun.enterprise.module.common_impl
Methods in com.sun.enterprise.module.common_impl that return types with arguments of type ActiveDescriptor Modifier and Type Method Description protected abstract List<ActiveDescriptor>
AbstractModulesRegistryImpl. parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors)
-
Uses of ActiveDescriptor in com.sun.enterprise.module.impl
Methods in com.sun.enterprise.module.impl that return types with arguments of type ActiveDescriptor Modifier and Type Method Description protected List<ActiveDescriptor>
ModulesRegistryImpl. parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors)
-
Uses of ActiveDescriptor in com.sun.enterprise.module.single
Methods in com.sun.enterprise.module.single that return types with arguments of type ActiveDescriptor Modifier and Type Method Description protected List<ActiveDescriptor>
ClassPathBasedModulesRegistry. parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors)
protected List<ActiveDescriptor>
SingleModulesRegistry. parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors)
-
Uses of ActiveDescriptor in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return ActiveDescriptor Modifier and Type Method Description ActiveDescriptor<?>
AOPProxyCtl. __getUnderlyingDescriptor()
This method returns the ActiveDescriptor underlying the service for which this object is a proxy<T> ActiveDescriptor<T>
DynamicConfiguration. addActiveDescriptor(Class<T> rawClass)
This adds an active descriptor to the system based completely on the analysis of the given class.<T> ActiveDescriptor<T>
DynamicConfiguration. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This allows third party systems to add reified active descriptors to the system.<T> ActiveDescriptor<T>
DynamicConfiguration. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
This allows third party systems to add reified active descriptors to the system.<T> ActiveDescriptor<T>
DynamicConfiguration. bind(Descriptor key)
This method will bind the given descriptor to this Module.<T> ActiveDescriptor<T>
DynamicConfiguration. bind(Descriptor key, boolean requiresDeepCopy)
This method will bind the given descriptor to this Module.ActiveDescriptor<?>
InstanceLifecycleEvent. getActiveDescriptor()
The active descriptor that is being used for the operation.ActiveDescriptor<T>
ServiceHandle. getActiveDescriptor()
Returns the ActiveDescriptor associated with this service handleActiveDescriptor<?>
ServiceLocator. getBestDescriptor(Filter filter)
Gets the descriptor that best matches this filter, taking ranking and service id into accountActiveDescriptor<?>
ValidationInformation. getCandidate()
The candidate descriptor for this operationActiveDescriptor<?>
Injectee. getInjecteeDescriptor()
This returns the ActiveDescriptor of the injectee if it is knownActiveDescriptor<?>
ServiceLocator. getInjecteeDescriptor(Injectee injectee)
This method will first find a descriptor for this injectee, and then reify that descriptor.ActiveDescriptor<?>
ServiceLocator. reifyDescriptor(Descriptor descriptor)
Converts a descriptor to an ActiveDescriptor.ActiveDescriptor<?>
ServiceLocator. reifyDescriptor(Descriptor descriptor, Injectee injectee)
Converts a descriptor to an ActiveDescriptor.Methods in org.glassfish.hk2.api that return types with arguments of type ActiveDescriptor Modifier and Type Method Description List<ActiveDescriptor<?>>
TwoPhaseTransactionData. getAllAddedDescriptors()
Gets all ActiveDescriptors that will be added in this transactionList<ActiveDescriptor<?>>
TwoPhaseTransactionData. getAllRemovedDescriptors()
Gets all ActiveDescriptors that will be removed by this transactionList<ActiveDescriptor<?>>
ServiceLocator. getDescriptors(Filter filter)
Gets the list of descriptors that match the given filterList<ActiveDescriptor<?>>
Populator. populate()
This method will populate the service locator using the system classloader to find the hk2-locator files from the default location of META-INF/hk2-locator/default.List<ActiveDescriptor<?>>
Populator. populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors)
This method can be used to populate the service locator with files that have been written out using theDescriptorImpl
writeObject method.Methods in org.glassfish.hk2.api with parameters of type ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
DynamicConfiguration. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This allows third party systems to add reified active descriptors to the system.<T> ActiveDescriptor<T>
DynamicConfiguration. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
This allows third party systems to add reified active descriptors to the system.boolean
Context. containsKey(ActiveDescriptor<?> descriptor)
Determines if this context has a value for the given keyvoid
Context. destroyOne(ActiveDescriptor<?> descriptor)
This method is called whenServiceHandle.destroy()
method is called.<U> U
Context. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
Creates a contextual instance of this ActiveDescriptor by calling its create method if there is no other matching contextual instance.<T> T
ServiceLocator. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
<T> T
ServiceLocator. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee injectee)
This method should be called by code resolving injectee's on behalf of some root service, usually by an implementation ofInjectionResolver.resolve(Injectee, ServiceHandle)
.<T> ServiceHandle<T>
ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets aServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
.<T> ServiceHandle<T>
ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
Gets aServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
. -
Uses of ActiveDescriptor in org.glassfish.hk2.bootstrap
Methods in org.glassfish.hk2.bootstrap that return types with arguments of type ActiveDescriptor Modifier and Type Method Description static List<ActiveDescriptor>
HK2Populator. populate(ServiceLocator serviceLocator, DescriptorFileFinder fileFinder, List<? extends PopulatorPostProcessor> postProcessors)
This method can be used to populate the service locator with files that have been written out using theDescriptorImpl
writeObject method. -
Uses of ActiveDescriptor in org.glassfish.hk2.configuration.internal
Classes in org.glassfish.hk2.configuration.internal that implement ActiveDescriptor Modifier and Type Class Description class
DelegatingNamedActiveDescriptor
Methods in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
ConfiguredByContext. containsKey(ActiveDescriptor<?> descriptor)
void
ConfiguredByContext. destroyOne(ActiveDescriptor<?> descriptor)
<U> U
ConfiguredByContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
-
Uses of ActiveDescriptor in org.glassfish.hk2.extras.hk2bridge.internal
Classes in org.glassfish.hk2.extras.hk2bridge.internal that implement ActiveDescriptor Modifier and Type Class Description class
CrossOverDescriptor<T>
Constructors in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ActiveDescriptor Constructor Description CrossOverDescriptor(ServiceLocator local, ActiveDescriptor<T> localService)
-
Uses of ActiveDescriptor in org.glassfish.hk2.extras.operation
Methods in org.glassfish.hk2.extras.operation with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
OperationContext. containsKey(ActiveDescriptor<?> descriptor)
void
OperationContext. destroyOne(ActiveDescriptor<?> descriptor)
<U> U
OperationContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
-
Uses of ActiveDescriptor in org.glassfish.hk2.extras.operation.internal
Classes in org.glassfish.hk2.extras.operation.internal that implement ActiveDescriptor Modifier and Type Class Description class
OperationDescriptor<T extends Annotation>
-
Uses of ActiveDescriptor in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement ActiveDescriptor Modifier and Type Class Description class
ConstantActiveDescriptor<T>
Methods in org.glassfish.hk2.internal with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
InheritableThreadContext. containsKey(ActiveDescriptor<?> descriptor)
boolean
PerThreadContext. containsKey(ActiveDescriptor<?> descriptor)
void
InheritableThreadContext. destroyOne(ActiveDescriptor<?> descriptor)
void
PerThreadContext. destroyOne(ActiveDescriptor<?> descriptor)
<U> U
InheritableThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
<U> U
PerThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
-
Uses of ActiveDescriptor in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
RunLevelContext. containsKey(ActiveDescriptor<?> descriptor)
void
RunLevelContext. destroyOne(ActiveDescriptor<?> descriptor)
<U> U
RunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
-
Uses of ActiveDescriptor in org.glassfish.hk2.runlevel.internal
Methods in org.glassfish.hk2.runlevel.internal with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
AsyncRunLevelContext. containsKey(ActiveDescriptor<?> descriptor)
TheContext
API for discovering if a descriptor has been createdvoid
AsyncRunLevelContext. destroyOne(ActiveDescriptor<?> descriptor)
TheContext
API.<U> U
AsyncRunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
This is from theContext
API, called by the wrapper -
Uses of ActiveDescriptor in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement ActiveDescriptor Modifier and Type Class Description class
AbstractActiveDescriptor<T>
This class can be used as a starting point for those writing their own ActiveDescriptor.class
AliasDescriptor<T>
An active descriptor class that serves as an alias for another descriptor.Methods in org.glassfish.hk2.utilities that return ActiveDescriptor Modifier and Type Method Description static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneConstant(ServiceLocator locator, Object constant)
This method adds one existing object to the given service locator.static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneConstant(ServiceLocator locator, Object constant, String name, Type... contracts)
This method adds one existing object to the given service locator.static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneDescriptor(ServiceLocator locator, Descriptor descriptor)
It is very often the case that one wishes to add a single descriptor to a service locator.static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneDescriptor(ServiceLocator locator, Descriptor descriptor, boolean requiresDeepCopy)
It is very often the case that one wishes to add a single descriptor to a service locator.static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. findOneDescriptor(ServiceLocator locator, Descriptor descriptor)
Finds a descriptor in the given service locator.ActiveDescriptor<T>
AliasDescriptor. getDescriptor()
Get the descriptor being aliased.ActiveDescriptor<T>
ContextualInput. getDescriptor()
Returns the descriptor associated with this contextual creationActiveDescriptor<?>
InjecteeImpl. getInjecteeDescriptor()
Methods in org.glassfish.hk2.utilities that return types with arguments of type ActiveDescriptor Modifier and Type Method Description static List<ActiveDescriptor<?>>
ServiceLocatorUtilities. addClasses(ServiceLocator locator, boolean idempotent, Class<?>... toAdd)
It is very often the case that one wishes to add classes that hk2 will automatically analyze for contracts and qualifiers to a service locator.static List<ActiveDescriptor<?>>
ServiceLocatorUtilities. addClasses(ServiceLocator locator, Class<?>... toAdd)
It is very often the case that one wishes to add classes that hk2 will automatically analyze for contracts and qualifiers to a service locator.Methods in org.glassfish.hk2.utilities with parameters of type ActiveDescriptor Modifier and Type Method Description boolean
ImmediateContext. containsKey(ActiveDescriptor<?> descriptor)
void
ImmediateContext. destroyOne(ActiveDescriptor<?> descriptor)
<U> U
ImmediateContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
void
ImmediateErrorHandler. postConstructFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its constructor or postConstruct method.void
ImmediateErrorHandler. preDestroyFailed(ActiveDescriptor<?> immediateService, Throwable exception)
This is called whenever an immediate service fails in its preDestroy method.void
InjecteeImpl. setInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
Sets the descriptor to be associated with this injecteeConstructors in org.glassfish.hk2.utilities with parameters of type ActiveDescriptor Constructor Description AliasDescriptor(ServiceLocator locator, ActiveDescriptor<T> descriptor, String contract, String name)
Construct an AliasDescriptor.ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root)
The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)
method -
Uses of ActiveDescriptor in org.glassfish.hk2.utilities.binding
Methods in org.glassfish.hk2.utilities.binding that return ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
AbstractBinder. addActiveDescriptor(Class<T> rawClass)
This adds an active descriptor to the system based completely on the analysis of the given class.<T> ActiveDescriptor<T>
AbstractBinder. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This allows third party systems to add reified active descriptors to the system.<T> ActiveDescriptor<T>
AbstractBinder. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
<T> ActiveDescriptor<T>
AbstractBinder. bind(Descriptor descriptor)
This method will bind the given descriptor to this Module.<T> ActiveDescriptor<T>
AbstractBinder. bind(Descriptor descriptor, boolean requiresDeepCopy)
Methods in org.glassfish.hk2.utilities.binding with parameters of type ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
AbstractBinder. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This allows third party systems to add reified active descriptors to the system.<T> ActiveDescriptor<T>
AbstractBinder. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
-
Uses of ActiveDescriptor in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement ActiveDescriptor Modifier and Type Class Description class
AutoActiveDescriptor<T>
class
ConstantActiveDescriptor<T>
class
SystemDescriptor<T>
Methods in org.jvnet.hk2.internal that return ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(Class<T> rawClass)
<T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
<T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
<T> ActiveDescriptor<T>
DynamicConfigurationImpl. bind(Descriptor key)
<T> ActiveDescriptor<T>
DynamicConfigurationImpl. bind(Descriptor key, boolean requiresDeepCopy)
ActiveDescriptor<?>
InstanceLifecycleEventImpl. getActiveDescriptor()
ActiveDescriptor<T>
ServiceHandleImpl. getActiveDescriptor()
ActiveDescriptor<?>
ServiceLocatorImpl. getBestDescriptor(Filter filter)
ActiveDescriptor<?>
ValidationInformationImpl. getCandidate()
ActiveDescriptor<?>
ServiceLocatorImpl. getInjecteeDescriptor(Injectee injectee)
ActiveDescriptor<?>
SystemInjecteeImpl. getInjecteeDescriptor()
static ActiveDescriptor<ServiceLocator>
Utilities. getLocatorDescriptor(ServiceLocator locator)
Returns a constant ActiveDescriptor for the basic ServiceLocatorstatic ActiveDescriptor<InjectionResolver<javax.inject.Inject>>
Utilities. getThreeThirtyDescriptor(ServiceLocatorImpl locator)
Creates a Three Thirty constant active descriptorActiveDescriptor<?>
ServiceLocatorImpl. reifyDescriptor(Descriptor descriptor)
ActiveDescriptor<?>
ServiceLocatorImpl. reifyDescriptor(Descriptor descriptor, Injectee injectee)
Methods in org.jvnet.hk2.internal that return types with arguments of type ActiveDescriptor Modifier and Type Method Description List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. getAllAddedDescriptors()
List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. getAllRemovedDescriptors()
List<ActiveDescriptor<?>>
ServiceLocatorImpl. getDescriptors(Filter filter)
List<ActiveDescriptor<?>>
PopulatorImpl. populate()
List<ActiveDescriptor<?>>
PopulatorImpl. populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors)
Methods in org.jvnet.hk2.internal with parameters of type ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
<T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
boolean
PerLookupContext. containsKey(ActiveDescriptor<?> descriptor)
boolean
SingletonContext. containsKey(ActiveDescriptor<?> descriptor)
static <T> AutoActiveDescriptor<T>
Utilities. createAutoFactoryDescriptor(Class<T> parentClazz, ActiveDescriptor<?> factoryDescriptor, ServiceLocatorImpl locator)
Creates a reified automatically generated descriptorstatic <T> T
Utilities. createService(ActiveDescriptor<T> root, Injectee injectee, ServiceLocatorImpl locator, ServiceHandle<T> handle, Class<?> requestedClass)
Creates the service (without the need for an intermediate ServiceHandle to be created)void
PerLookupContext. destroyOne(ActiveDescriptor<?> descriptor)
void
SingletonContext. destroyOne(ActiveDescriptor<?> one)
Release one system descriptor<T> T
PerLookupContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
<T> T
SingletonContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
<T> T
ProxyUtilities. generateProxy(Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee)
static List<SystemInjecteeImpl>
Utilities. getConstructorInjectees(Constructor<?> c, ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructorstatic Class<?>
Utilities. getFactoryAwareImplementationClass(ActiveDescriptor<?> descriptor)
This utility will return the proper implementation class, taking into account that the descriptor may be a factorystatic List<SystemInjecteeImpl>
Utilities. getFieldInjectees(Class<?> actualClass, Field f, ActiveDescriptor<?> injecteeDescriptor)
Returns the injectees for a fieldstatic Class<? extends Annotation>
Utilities. getInjectionResolverType(ActiveDescriptor<?> desc)
Will return the class of the injection resolver annotation type, or null if no injection resolver annotation can be foundstatic List<SystemInjecteeImpl>
Utilities. getMethodInjectees(Class<?> actualClass, Method c, ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructorstatic List<SystemInjecteeImpl>
Utilities. getMethodInjectees(Class<?> actualClass, Method c, ActiveDescriptor<?> injecteeDescriptor, Map<Integer,MethodParameter> knownValues)
Returns all the injectees for a constructor<T> T
ServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
Deprecated.<T> T
ServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee originalRequest)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
static void
Utilities. validateSelfInjectees(ActiveDescriptor<?> givenDescriptor, List<SystemInjecteeImpl> injectees, Collector collector)
This method validates a list of injectees to ensure that any self injectees have the proper set of requirements.Constructors in org.jvnet.hk2.internal with parameters of type ActiveDescriptor Constructor Description ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate)
Creates the validation informationValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate, Injectee injectee, Filter filter)
Creates the validation information -
Uses of ActiveDescriptor in org.jvnet.hk2.jmx.api
Methods in org.jvnet.hk2.jmx.api with parameters of type ActiveDescriptor Modifier and Type Method Description Object
HK2JmxSpecifier. getJmxObject(ActiveDescriptor<?> descriptor, Object instance)
Gets the Object that should be used either directly or to be modelled.
-