Uses of Interface
org.glassfish.hk2.api.ActiveDescriptor
-
-
Uses of ActiveDescriptor in com.sun.enterprise.module.common_impl
Fields in com.sun.enterprise.module.common_impl with type parameters of type ActiveDescriptor Modifier and Type Field Description (package private) java.util.Map<Module,java.util.Map<ServiceLocator,java.util.List<ActiveDescriptor>>>
AbstractModulesRegistryImpl. moduleDescriptors
Methods in com.sun.enterprise.module.common_impl that return types with arguments of type ActiveDescriptor Modifier and Type Method Description protected abstract java.util.List<ActiveDescriptor>
AbstractModulesRegistryImpl. parseInhabitants(Module module, java.lang.String name, ServiceLocator serviceLocator, java.util.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 (package private) java.util.List<ActiveDescriptor>
ModuleImpl. parseInhabitants(java.lang.String name, java.util.List<PopulatorPostProcessor> postProcessors)
Parses all the inhabitants descriptors of the given name in this module.protected java.util.List<ActiveDescriptor>
ModulesRegistryImpl. parseInhabitants(Module module, java.lang.String name, ServiceLocator serviceLocator, java.util.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 java.util.List<ActiveDescriptor>
ClassPathBasedModulesRegistry. parseInhabitants(Module module, java.lang.String name, ServiceLocator serviceLocator, java.util.List<PopulatorPostProcessor> postProcessors)
protected java.util.List<ActiveDescriptor>
SingleModulesRegistry. parseInhabitants(Module module, java.lang.String name, ServiceLocator serviceLocator, java.util.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(java.lang.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 java.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionData. getAllAddedDescriptors()
Gets all ActiveDescriptors that will be added in this transactionjava.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionData. getAllRemovedDescriptors()
Gets all ActiveDescriptors that will be removed by this transactionjava.util.List<ActiveDescriptor<?>>
ServiceLocator. getDescriptors(Filter filter)
Gets the list of descriptors that match the given filterjava.util.List<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.java.util.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 java.util.List<ActiveDescriptor>
HK2Populator. populate(ServiceLocator serviceLocator, DescriptorFileFinder fileFinder, java.util.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
Fields in org.glassfish.hk2.configuration.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<?>
DelegatingNamedActiveDescriptor. parent
Fields in org.glassfish.hk2.configuration.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashSet<ActiveDescriptor<?>>
ConfigurationListener. allProgenitors
private java.util.concurrent.ConcurrentHashMap<ActiveDescriptor<?>,BeanInfo>
ConfiguredByInjectionResolver. beanMap
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object>
ConfiguredByContext. db
private static java.lang.ThreadLocal<ActiveDescriptor<?>>
ConfiguredByContext. workingOn
Methods in org.glassfish.hk2.configuration.internal that return ActiveDescriptor Modifier and Type Method Description private ActiveDescriptor<?>
ConfigurationListener. addInstanceDescriptor(DynamicConfiguration config, ActiveDescriptor<?> parent, java.lang.String name, java.lang.String type, java.lang.Object bean, java.lang.Object metadata)
(package private) ActiveDescriptor<?>
ConfiguredByContext. getWorkingOn()
Methods in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptor Modifier and Type Method Description (package private) BeanInfo
ConfiguredByInjectionResolver. addBean(ActiveDescriptor<?> descriptor, java.lang.Object bean, java.lang.String type, java.lang.Object metadata)
private ActiveDescriptor<?>
ConfigurationListener. addInstanceDescriptor(DynamicConfiguration config, ActiveDescriptor<?> parent, java.lang.String name, java.lang.String type, java.lang.Object bean, java.lang.Object metadata)
boolean
ConfiguredByContext. containsKey(ActiveDescriptor<?> descriptor)
void
ConfiguredByContext. destroyOne(ActiveDescriptor<?> descriptor)
(package private) java.lang.Object
ConfiguredByContext. findOnly(ActiveDescriptor<?> descriptor)
<U> U
ConfiguredByContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
private java.lang.String
ConfigurationListener. getTypeFromConfiguredBy(ActiveDescriptor<?> descriptor)
private <U> U
ConfiguredByContext. internalFindOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
private static boolean
ConfigurationListener. isEager(ActiveDescriptor<?> descriptor)
private void
ConfigurationListener. modifyInstanceDescriptor(ActiveDescriptor<?> parent, java.lang.String name, java.lang.Object bean, java.lang.Object metadata, java.lang.String typeName, java.util.List<java.beans.PropertyChangeEvent> changes)
(package private) void
ConfiguredByInjectionResolver. removeBean(ActiveDescriptor<?> descriptor)
Constructors in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptor Constructor Description DelegatingNamedActiveDescriptor(ActiveDescriptor<?> parent, java.lang.String name)
-
Uses of ActiveDescriptor in org.glassfish.hk2.extras.events.internal
Fields in org.glassfish.hk2.extras.events.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<?>
DefaultTopicDistributionService.ActivatorClassKey. descriptor
private ActiveDescriptor<TopicDistributionService>
DefaultTopicDistributionService. selfDescriptor
Fields in org.glassfish.hk2.extras.events.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashMap<ActiveDescriptor<?>,java.util.Set<java.lang.Class<?>>>
DefaultTopicDistributionService. descriptor2Classes
Methods in org.glassfish.hk2.extras.events.internal with parameters of type ActiveDescriptor Modifier and Type Method Description private static DefaultTopicDistributionService.SubscriberInfo
DefaultTopicDistributionService. generateSubscriberInfo(ActiveDescriptor<?> injecteeDescriptor, java.lang.reflect.Method subscriber, java.lang.reflect.Method useSubscriber, int subscribeToPosition, java.lang.annotation.Annotation[][] paramAnnotations)
private java.util.List<DefaultTopicDistributionService.FireResults>
DefaultTopicDistributionService. handleDescriptorToClass(ActiveDescriptor<?> descriptor, java.lang.Class<?> clazz, java.lang.reflect.Type eventType, Topic<?> topic)
Constructors in org.glassfish.hk2.extras.events.internal with parameters of type ActiveDescriptor Constructor Description ActivatorClassKey(ActiveDescriptor<?> descriptor, java.lang.Class<?> clazz)
-
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>
Fields in org.glassfish.hk2.extras.hk2bridge.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<T>
CrossOverDescriptor. remote
Fields in org.glassfish.hk2.extras.hk2bridge.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.List<ActiveDescriptor<?>>
Hk2BridgeImpl. mirroredDescriptors
Method parameters in org.glassfish.hk2.extras.hk2bridge.internal with type arguments of type ActiveDescriptor Modifier and Type Method Description private void
Hk2BridgeImpl. handleChange(java.util.List<ActiveDescriptor<?>> newDescriptors)
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
Fields in org.glassfish.hk2.extras.operation with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashSet<ActiveDescriptor<?>>
OperationContext. creating
private java.util.HashMap<OperationHandleImpl<T>,java.util.LinkedHashMap<ActiveDescriptor<?>,java.lang.Object>>
OperationContext. operationMap
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 java.lang.annotation.Annotation>
Fields in org.glassfish.hk2.extras.operation.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<?>
SingleOperationManager. operationDescriptor
-
Uses of ActiveDescriptor in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement ActiveDescriptor Modifier and Type Class Description private static class
ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T>
class
ConstantActiveDescriptor<T>
Fields in org.glassfish.hk2.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object>
InheritableThreadContext.InheritableContextThreadWrapper. instances
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object>
PerThreadContext.PerContextThreadWrapper. instances
Methods in org.glassfish.hk2.internal that return types with arguments of type ActiveDescriptor Modifier and Type Method Description private java.util.List<ActiveDescriptor<?>>
ImmediateHelper. getImmediateServices()
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)
java.lang.Object
InheritableThreadContext.InheritableContextThreadWrapper. get(ActiveDescriptor<?> d)
java.lang.Object
PerThreadContext.PerContextThreadWrapper. get(ActiveDescriptor<?> d)
boolean
InheritableThreadContext.InheritableContextThreadWrapper. has(ActiveDescriptor<?> d)
boolean
PerThreadContext.PerContextThreadWrapper. has(ActiveDescriptor<?> d)
void
InheritableThreadContext.InheritableContextThreadWrapper. put(ActiveDescriptor<?> d, java.lang.Object v)
void
PerThreadContext.PerContextThreadWrapper. put(ActiveDescriptor<?> d, java.lang.Object v)
-
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
Fields in org.glassfish.hk2.runlevel.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<?>
CurrentTaskFuture.DownAllTheWay. lastErrorDescriptor
Fields in org.glassfish.hk2.runlevel.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashSet<ActiveDescriptor<?>>
CurrentTaskFuture.QueueRunner. alreadyTried
private java.util.Map<ActiveDescriptor<?>,java.lang.Object>
AsyncRunLevelContext. backingMap
The backing maps for this context.private java.util.HashMap<ActiveDescriptor<?>,java.lang.Long>
AsyncRunLevelContext. creatingDescriptors
The set of services currently being createdprivate java.util.HashSet<ActiveDescriptor<?>>
AsyncRunLevelContext. hardCancelledDescriptors
The set of descriptors that have been hard cancelledprivate java.util.Map<ActiveDescriptor<?>,java.lang.Throwable>
AsyncRunLevelContext. levelErrorMap
private java.util.LinkedList<ActiveDescriptor<?>>
AsyncRunLevelContext. orderedCreationList
private java.util.List<ActiveDescriptor<?>>
CurrentTaskFuture.DownAllTheWay. queue
private java.util.List<ActiveDescriptor<?>>
CurrentTaskFuture.DownQueueRunner. queue
private java.util.List<ActiveDescriptor<?>>
CurrentTaskFuture.HardCancelDownTimer. queue
Methods in org.glassfish.hk2.runlevel.internal that return types with arguments of type ActiveDescriptor Modifier and Type Method Description (package private) java.util.List<ActiveDescriptor<?>>
AsyncRunLevelContext. getOrderedListOfServicesAtLevel(int level)
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(package private) void
AsyncRunLevelContext. hardCancelOne(ActiveDescriptor<?> descriptor)
No need to lock this, it is called with the lock already heldprivate boolean
CurrentTaskFuture.QueueRunner. isWouldBlockRightNow(java.util.HashSet<ActiveDescriptor<?>> cycleChecker, ActiveDescriptor<?> checkMe)
This method does a preliminary check of whether or not the descriptor (or any children) would cause the thread to block.private static java.lang.String
AsyncRunLevelContext. oneLineDescriptor(ActiveDescriptor<?> descriptor)
private void
AsyncRunLevelContext. validate(ActiveDescriptor<?> descriptor, int currentLevel)
Verifies that the run level value of theRunLevel
annotated service described by the given descriptor is valid for activation.(package private) boolean
AsyncRunLevelContext. wouldBlockRightNow(ActiveDescriptor<?> desc)
Method parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ActiveDescriptor Modifier and Type Method Description private boolean
CurrentTaskFuture.QueueRunner. isWouldBlockRightNow(java.util.HashSet<ActiveDescriptor<?>> cycleChecker, ActiveDescriptor<?> checkMe)
This method does a preliminary check of whether or not the descriptor (or any children) would cause the thread to block.Constructor parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ActiveDescriptor Constructor Description DownQueueRunner(java.lang.Object queueLock, java.util.List<ActiveDescriptor<?>> queue, CurrentTaskFuture.DownAllTheWay parent, ServiceLocator locator)
HardCancelDownTimer(CurrentTaskFuture.DownAllTheWay parent, java.util.List<ActiveDescriptor<?>> queue)
-
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.Fields in org.glassfish.hk2.utilities declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<T>
AliasDescriptor. descriptor
The descriptor that this descriptor will alias.private ActiveDescriptor<T>
ContextualInput. descriptor
private ActiveDescriptor<?>
InjecteeImpl. injecteeDescriptor
Fields in org.glassfish.hk2.utilities with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashMap<ActiveDescriptor<?>,java.lang.Long>
ImmediateContext. creating
private java.util.HashMap<ActiveDescriptor<?>,HandleAndService>
ImmediateContext. currentImmediateServices
Methods in org.glassfish.hk2.utilities that return ActiveDescriptor Modifier and Type Method Description static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneConstant(ServiceLocator locator, java.lang.Object constant)
This method adds one existing object to the given service locator.static <T> ActiveDescriptor<T>
ServiceLocatorUtilities. addOneConstant(ServiceLocator locator, java.lang.Object constant, java.lang.String name, java.lang.reflect.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 java.util.List<ActiveDescriptor<?>>
ServiceLocatorUtilities. addClasses(ServiceLocator locator, boolean idempotent, java.lang.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 java.util.List<ActiveDescriptor<?>>
ServiceLocatorUtilities. addClasses(ServiceLocator locator, java.lang.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.private java.util.List<ActiveDescriptor<?>>
ImmediateContext. getImmediateServices()
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)
private void
ImmediateContext. destroyOne(ActiveDescriptor<?> descriptor, java.util.List<ImmediateErrorHandler> errorHandlers)
Destroys a single descriptor<U> U
ImmediateContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
private static java.lang.String
AliasDescriptor. getAliasMetadataValue(ActiveDescriptor<?> descriptor)
void
ImmediateErrorHandler. postConstructFailed(ActiveDescriptor<?> immediateService, java.lang.Throwable exception)
This is called whenever an immediate service fails in its constructor or postConstruct method.void
ImmediateErrorHandler. preDestroyFailed(ActiveDescriptor<?> immediateService, java.lang.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, java.lang.String contract, java.lang.String name)
Construct an AliasDescriptor.ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root)
The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)
methodConstructor parameters in org.glassfish.hk2.utilities with type arguments of type ActiveDescriptor Constructor Description AliasFilter(java.util.List<ActiveDescriptor<?>> bases)
-
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(java.lang.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>
Fields in org.jvnet.hk2.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<T>
SystemDescriptor. activeDescriptor
private ActiveDescriptor<?>
ValidationInformationImpl. candidate
private ActiveDescriptor<?>
ErrorResults. descriptor
private ActiveDescriptor<?>
InstanceLifecycleEventImpl. descriptor
private ActiveDescriptor<?>
MethodInterceptorImpl. descriptor
private ActiveDescriptor<?>
FactoryCreator. factoryDescriptor
private ActiveDescriptor<?>
SystemInjecteeImpl. injecteeDescriptor
private ActiveDescriptor<T>
ServiceHandleImpl. root
private ActiveDescriptor<?>
ClazzCreator. selfDescriptor
private ActiveDescriptor<?>
MethodInterceptorHandler. underlyingDescriptor
Fields in org.jvnet.hk2.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. added
private java.util.concurrent.ConcurrentHashMap<ThreadSpecificObject<ActiveDescriptor<?>>,java.lang.Object>
FactoryCreator. cycleFinder
private java.util.List<ActiveDescriptor<?>>
NarrowResults. goodResults
private java.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. removed
private java.util.List<ActiveDescriptor<?>>
NarrowResults. unnarrowedResults
private java.util.List<ActiveDescriptor<?>>
ImmediateResults. validatedImmediateResults
Methods in org.jvnet.hk2.internal that return ActiveDescriptor Modifier and Type Method Description <T> ActiveDescriptor<T>
DynamicConfigurationImpl. addActiveDescriptor(java.lang.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()
(package private) ActiveDescriptor<?>
ErrorResults. getDescriptor()
private ActiveDescriptor<?>
SystemDescriptor. getFactoryDescriptor(java.lang.reflect.Method provideMethod, java.lang.reflect.Type factoryProvidedType, ServiceLocatorImpl locator, Collector collector)
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 descriptor(package private) ActiveDescriptor<?>
ClazzCreator. getUnderlyingDescriptor()
private <T> ActiveDescriptor<T>
ServiceLocatorImpl. internalGetDescriptor(Injectee onBehalfOf, java.lang.reflect.Type contractOrImpl, java.lang.String name, Unqualified unqualified, boolean isIterable, boolean calledFromSecondChanceResolveMethod, java.lang.annotation.Annotation... qualifiers)
private <T> ActiveDescriptor<T>
ServiceLocatorImpl. internalGetDescriptor(Injectee onBehalfOf, java.lang.reflect.Type contractOrImpl, java.lang.String name, Unqualified unqualified, boolean isIterable, java.lang.annotation.Annotation... qualifiers)
private ActiveDescriptor<?>
ServiceLocatorImpl. internalGetInjecteeDescriptor(Injectee injectee, boolean calledFromSecondChanceResolveMethod)
ActiveDescriptor<?>
ServiceLocatorImpl. reifyDescriptor(Descriptor descriptor)
ActiveDescriptor<?>
ServiceLocatorImpl. reifyDescriptor(Descriptor descriptor, Injectee injectee)
(package private) ActiveDescriptor<?>
NarrowResults. removeUnnarrowedResult()
private ActiveDescriptor<?>
ServiceLocatorImpl. secondChanceResolve(Injectee injectee)
Methods in org.jvnet.hk2.internal that return types with arguments of type ActiveDescriptor Modifier and Type Method Description java.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. getAllAddedDescriptors()
java.util.List<ActiveDescriptor<?>>
TwoPhaseTransactionDataImpl. getAllRemovedDescriptors()
java.util.List<ActiveDescriptor<?>>
ServiceLocatorImpl. getDescriptors(Filter filter)
(package private) java.util.List<ActiveDescriptor<?>>
ImmediateResults. getImmediateResults()
(package private) java.util.List<ActiveDescriptor<?>>
NarrowResults. getResults()
java.util.List<ActiveDescriptor<?>>
PopulatorImpl. populate()
java.util.List<ActiveDescriptor<?>>
PopulatorImpl. populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors)
private java.util.List<ActiveDescriptor<?>>
ServiceLocatorImpl. protectedGetDescriptors(Filter filter)
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)
(package private) void
NarrowResults. addError(ActiveDescriptor<?> fail, Injectee injectee, MultiException me)
(package private) void
NarrowResults. addGoodResult(ActiveDescriptor<?> result)
(package private) void
ImmediateResults. addValidatedResult(ActiveDescriptor<?> addMe)
private static void
DynamicConfigurationImpl. checkReifiedDescriptor(ActiveDescriptor<?> d)
boolean
PerLookupContext. containsKey(ActiveDescriptor<?> descriptor)
boolean
SingletonContext. containsKey(ActiveDescriptor<?> descriptor)
static <T> AutoActiveDescriptor<T>
Utilities. createAutoFactoryDescriptor(java.lang.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, java.lang.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 descriptorprivate static boolean
ServiceLocatorImpl. doTrace(ActiveDescriptor<?> desc)
<T> T
PerLookupContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
<T> T
SingletonContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
<T> T
ProxyUtilities. generateProxy(java.lang.Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee)
private static java.util.List<java.lang.String>
ServiceLocatorImpl. getAllContracts(ActiveDescriptor<?> desc)
(package private) static Utilities.Interceptors
Utilities. getAllInterceptors(ServiceLocatorImpl impl, ActiveDescriptor<?> descriptor, java.lang.Class<?> clazz, java.lang.reflect.Constructor<?> c)
static java.util.List<SystemInjecteeImpl>
Utilities. getConstructorInjectees(java.lang.reflect.Constructor<?> c, ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructorstatic java.lang.Class<?>
Utilities. getFactoryAwareImplementationClass(ActiveDescriptor<?> descriptor)
This utility will return the proper implementation class, taking into account that the descriptor may be a factoryprivate static java.lang.Class<?>
Utilities. getFactoryProductionClass(ActiveDescriptor<?> descriptor)
This method returns the class associated with the type of the factory.static java.util.List<SystemInjecteeImpl>
Utilities. getFieldInjectees(java.lang.Class<?> actualClass, java.lang.reflect.Field f, ActiveDescriptor<?> injecteeDescriptor)
Returns the injectees for a fieldstatic java.lang.Class<? extends java.lang.annotation.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 java.util.List<SystemInjecteeImpl>
Utilities. getMethodInjectees(java.lang.Class<?> actualClass, java.lang.reflect.Method c, ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructorstatic java.util.List<SystemInjecteeImpl>
Utilities. getMethodInjectees(java.lang.Class<?> actualClass, java.lang.reflect.Method c, ActiveDescriptor<?> injecteeDescriptor, java.util.Map<java.lang.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)
private <T> ServiceHandleImpl<T>
ServiceLocatorImpl. getServiceHandleImpl(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
(package private) void
ClazzCreator. initialize(ActiveDescriptor<?> selfDescriptor, java.lang.String analyzerName, Collector collector)
(package private) void
ClazzCreator. initialize(ActiveDescriptor<?> selfDescriptor, Collector collector)
private <T> ServiceHandleImpl<T>
ServiceLocatorImpl. internalGetServiceHandle(ActiveDescriptor<T> activeDescriptor, java.lang.reflect.Type requestedType, Injectee originalRequest)
private static boolean
Utilities. isProxiable(ActiveDescriptor<?> desc, Injectee injectee)
This method determines whether or not the descriptor should be proxied.(package private) void
SystemInjecteeImpl. resetInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
(package private) void
AutoActiveDescriptor. resetSelfDescriptor(ActiveDescriptor<?> toMe)
(package private) void
ClazzCreator. resetSelfDescriptor(ActiveDescriptor<?> selfDescriptor)
This is done because sometimes when creating the creator we do not know what the true system descriptor will be(package private) void
TwoPhaseTransactionDataImpl. toAdd(ActiveDescriptor<?> addMe)
(package private) void
TwoPhaseTransactionDataImpl. toRemove(ActiveDescriptor<?> removeMe)
static void
Utilities. validateSelfInjectees(ActiveDescriptor<?> givenDescriptor, java.util.List<SystemInjecteeImpl> injectees, Collector collector)
This method validates a list of injectees to ensure that any self injectees have the proper set of requirements.Method parameters in org.jvnet.hk2.internal with type arguments of type ActiveDescriptor Modifier and Type Method Description (package private) void
NarrowResults. setUnnarrowedResults(java.util.List<ActiveDescriptor<?>> unnarrowed)
Constructors in org.jvnet.hk2.internal with parameters of type ActiveDescriptor Constructor Description ErrorResults(ActiveDescriptor<?> descriptor, Injectee injectee, MultiException me)
FactoryCreator(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor)
InstanceLifecycleEventImpl(InstanceLifecycleEventType eventType, java.lang.Object lifecycleObject, java.util.Map<Injectee,java.lang.Object> knownInjectees, ActiveDescriptor<?> descriptor)
InstanceLifecycleEventImpl(InstanceLifecycleEventType eventType, java.lang.Object lifecycleObject, ActiveDescriptor<?> descriptor)
MethodInterceptorHandler(ServiceLocatorImpl locator, ActiveDescriptor<?> underlyingDescriptor, java.util.Map<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> interceptorLists)
MethodInterceptorImpl(ServiceLocatorImpl sli, ActiveDescriptor<?> descriptor, ServiceHandleImpl<?> root, Injectee injectee)
ServiceHandleImpl(ServiceLocatorImpl locator, ActiveDescriptor<T> root, Injectee injectee)
SystemInjecteeImpl(java.lang.reflect.Type requiredType, java.util.Set<java.lang.annotation.Annotation> qualifiers, int position, java.lang.reflect.AnnotatedElement parent, boolean isOptional, boolean isSelf, Unqualified unqualified, ActiveDescriptor<?> injecteeDescriptor)
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 java.lang.Object
HK2JmxSpecifier. getJmxObject(ActiveDescriptor<?> descriptor, java.lang.Object instance)
Gets the Object that should be used either directly or to be modelled.
-