Uses of Interface
org.glassfish.hk2.api.ActiveDescriptor
Packages that use ActiveDescriptor
Package
Description
-
Uses of ActiveDescriptor in com.sun.enterprise.module.common_impl
Fields in com.sun.enterprise.module.common_impl with type parameters of type ActiveDescriptorModifier and TypeFieldDescription(package private) Map
<Module, Map<ServiceLocator, List<ActiveDescriptor>>> AbstractModulesRegistryImpl.moduleDescriptors
Methods in com.sun.enterprise.module.common_impl that return types with arguments of type ActiveDescriptorModifier and TypeMethodDescriptionprotected 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 ActiveDescriptorModifier and TypeMethodDescription(package private) List
<ActiveDescriptor> ModuleImpl.parseInhabitants
(String name, List<PopulatorPostProcessor> postProcessors) Parses all the inhabitants descriptors of the given name in this module.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 ActiveDescriptorModifier and TypeMethodDescriptionprotected 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 ActiveDescriptorModifier and TypeMethodDescriptionAOPProxyCtl.__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.InstanceLifecycleEvent.getActiveDescriptor()
The active descriptor that is being used for the operation.ServiceHandle.getActiveDescriptor()
Returns the ActiveDescriptor associated with this service handleServiceLocator.getBestDescriptor
(Filter filter) Gets the descriptor that best matches this filter, taking ranking and service id into accountValidationInformation.getCandidate()
The candidate descriptor for this operationInjectee.getInjecteeDescriptor()
This returns the ActiveDescriptor of the injectee if it is knownServiceLocator.getInjecteeDescriptor
(Injectee injectee) This method will first find a descriptor for this injectee, and then reify that descriptor.ServiceLocator.reifyDescriptor
(Descriptor descriptor) Converts a descriptor to an 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 ActiveDescriptorModifier and TypeMethodDescriptionList
<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 ActiveDescriptorModifier and TypeMethodDescription<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) Deprecated.<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 ActiveDescriptorModifier and TypeMethodDescriptionstatic 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 ActiveDescriptorFields in org.glassfish.hk2.configuration.internal declared as ActiveDescriptorModifier and TypeFieldDescriptionprivate final ActiveDescriptor
<?> DelegatingNamedActiveDescriptor.parent
Fields in org.glassfish.hk2.configuration.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate HashSet
<ActiveDescriptor<?>> ConfigurationListener.allProgenitors
private final ConcurrentHashMap
<ActiveDescriptor<?>, BeanInfo> ConfiguredByInjectionResolver.beanMap
private final HashMap
<ActiveDescriptor<?>, Object> ConfiguredByContext.db
private static final ThreadLocal
<ActiveDescriptor<?>> ConfiguredByContext.workingOn
Methods in org.glassfish.hk2.configuration.internal that return ActiveDescriptorModifier and TypeMethodDescriptionprivate ActiveDescriptor
<?> ConfigurationListener.addInstanceDescriptor
(DynamicConfiguration config, ActiveDescriptor<?> parent, String name, String type, Object bean, Object metadata) (package private) ActiveDescriptor
<?> ConfiguredByContext.getWorkingOn()
Methods in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescription(package private) BeanInfo
ConfiguredByInjectionResolver.addBean
(ActiveDescriptor<?> descriptor, Object bean, String type, Object metadata) private ActiveDescriptor
<?> ConfigurationListener.addInstanceDescriptor
(DynamicConfiguration config, ActiveDescriptor<?> parent, String name, String type, Object bean, Object metadata) boolean
ConfiguredByContext.containsKey
(ActiveDescriptor<?> descriptor) void
ConfiguredByContext.destroyOne
(ActiveDescriptor<?> descriptor) (package private) Object
ConfiguredByContext.findOnly
(ActiveDescriptor<?> descriptor) <U> U
ConfiguredByContext.findOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) private 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, String name, Object bean, Object metadata, String typeName, List<PropertyChangeEvent> changes) (package private) void
ConfiguredByInjectionResolver.removeBean
(ActiveDescriptor<?> descriptor) Constructors in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptorModifierConstructorDescription(package private)
DelegatingNamedActiveDescriptor
(ActiveDescriptor<?> parent, String name) -
Uses of ActiveDescriptor in org.glassfish.hk2.extras.events.internal
Fields in org.glassfish.hk2.extras.events.internal declared as ActiveDescriptorModifier and TypeFieldDescriptionprivate final ActiveDescriptor
<?> DefaultTopicDistributionService.ActivatorClassKey.descriptor
private ActiveDescriptor
<TopicDistributionService> DefaultTopicDistributionService.selfDescriptor
Fields in org.glassfish.hk2.extras.events.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate final HashMap
<ActiveDescriptor<?>, Set<Class<?>>> DefaultTopicDistributionService.descriptor2Classes
Methods in org.glassfish.hk2.extras.events.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionprivate static DefaultTopicDistributionService.SubscriberInfo
DefaultTopicDistributionService.generateSubscriberInfo
(ActiveDescriptor<?> injecteeDescriptor, Method subscriber, Method useSubscriber, int subscribeToPosition, Annotation[][] paramAnnotations) DefaultTopicDistributionService.handleDescriptorToClass
(ActiveDescriptor<?> descriptor, Class<?> clazz, Type eventType, Topic<?> topic) Constructors in org.glassfish.hk2.extras.events.internal with parameters of type ActiveDescriptorModifierConstructorDescriptionprivate
ActivatorClassKey
(ActiveDescriptor<?> descriptor, Class<?> clazz) -
Uses of ActiveDescriptor in org.glassfish.hk2.extras.hk2bridge.internal
Classes in org.glassfish.hk2.extras.hk2bridge.internal that implement ActiveDescriptorFields in org.glassfish.hk2.extras.hk2bridge.internal declared as ActiveDescriptorFields in org.glassfish.hk2.extras.hk2bridge.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate List
<ActiveDescriptor<?>> Hk2BridgeImpl.mirroredDescriptors
Method parameters in org.glassfish.hk2.extras.hk2bridge.internal with type arguments of type ActiveDescriptorModifier and TypeMethodDescriptionprivate void
Hk2BridgeImpl.handleChange
(List<ActiveDescriptor<?>> newDescriptors) Constructors in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ActiveDescriptorModifierConstructorDescriptionCrossOverDescriptor
(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 ActiveDescriptorModifier and TypeFieldDescriptionprivate final HashSet
<ActiveDescriptor<?>> OperationContext.creating
private final HashMap
<OperationHandleImpl<T>, LinkedHashMap<ActiveDescriptor<?>, Object>> OperationContext.operationMap
Methods in org.glassfish.hk2.extras.operation with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionboolean
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 ActiveDescriptorFields in org.glassfish.hk2.extras.operation.internal declared as ActiveDescriptorModifier and TypeFieldDescriptionprivate final ActiveDescriptor
<?> SingleOperationManager.operationDescriptor
-
Uses of ActiveDescriptor in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement ActiveDescriptorModifier and TypeClassDescriptionprivate static class
class
Fields in org.glassfish.hk2.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate final HashMap
<ActiveDescriptor<?>, Object> InheritableThreadContext.InheritableContextThreadWrapper.instances
private final HashMap
<ActiveDescriptor<?>, Object> PerThreadContext.PerContextThreadWrapper.instances
Methods in org.glassfish.hk2.internal that return types with arguments of type ActiveDescriptorModifier and TypeMethodDescriptionprivate List
<ActiveDescriptor<?>> ImmediateHelper.getImmediateServices()
Methods in org.glassfish.hk2.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionboolean
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) InheritableThreadContext.InheritableContextThreadWrapper.get
(ActiveDescriptor<?> d) PerThreadContext.PerContextThreadWrapper.get
(ActiveDescriptor<?> d) boolean
InheritableThreadContext.InheritableContextThreadWrapper.has
(ActiveDescriptor<?> d) boolean
PerThreadContext.PerContextThreadWrapper.has
(ActiveDescriptor<?> d) void
InheritableThreadContext.InheritableContextThreadWrapper.put
(ActiveDescriptor<?> d, Object v) void
PerThreadContext.PerContextThreadWrapper.put
(ActiveDescriptor<?> d, Object v) -
Uses of ActiveDescriptor in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionboolean
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 ActiveDescriptorModifier and TypeFieldDescriptionprivate ActiveDescriptor
<?> CurrentTaskFuture.DownAllTheWay.lastErrorDescriptor
Fields in org.glassfish.hk2.runlevel.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate final HashSet
<ActiveDescriptor<?>> CurrentTaskFuture.QueueRunner.alreadyTried
private final Map
<ActiveDescriptor<?>, Object> AsyncRunLevelContext.backingMap
The backing maps for this context.private final HashMap
<ActiveDescriptor<?>, Long> AsyncRunLevelContext.creatingDescriptors
The set of services currently being createdprivate final HashSet
<ActiveDescriptor<?>> AsyncRunLevelContext.hardCancelledDescriptors
The set of descriptors that have been hard cancelledprivate final Map
<ActiveDescriptor<?>, Throwable> AsyncRunLevelContext.levelErrorMap
private final LinkedList
<ActiveDescriptor<?>> AsyncRunLevelContext.orderedCreationList
private List
<ActiveDescriptor<?>> CurrentTaskFuture.DownAllTheWay.queue
private final List
<ActiveDescriptor<?>> CurrentTaskFuture.DownQueueRunner.queue
private final List
<ActiveDescriptor<?>> CurrentTaskFuture.HardCancelDownTimer.queue
Methods in org.glassfish.hk2.runlevel.internal that return types with arguments of type ActiveDescriptorModifier and TypeMethodDescription(package private) List
<ActiveDescriptor<?>> AsyncRunLevelContext.getOrderedListOfServicesAtLevel
(int level) Methods in org.glassfish.hk2.runlevel.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionboolean
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
(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 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 ActiveDescriptorModifier and TypeMethodDescriptionprivate boolean
CurrentTaskFuture.QueueRunner.isWouldBlockRightNow
(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 ActiveDescriptorModifierConstructorDescriptionprivate
DownQueueRunner
(Object queueLock, List<ActiveDescriptor<?>> queue, CurrentTaskFuture.DownAllTheWay parent, ServiceLocator locator) private
HardCancelDownTimer
(CurrentTaskFuture.DownAllTheWay parent, List<ActiveDescriptor<?>> queue) -
Uses of ActiveDescriptor in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement ActiveDescriptorModifier and TypeClassDescriptionclass
This class can be used as a starting point for those writing their own ActiveDescriptor.class
An active descriptor class that serves as an alias for another descriptor.Fields in org.glassfish.hk2.utilities declared as ActiveDescriptorModifier and TypeFieldDescriptionprivate ActiveDescriptor
<T> AliasDescriptor.descriptor
The descriptor that this descriptor will alias.private final ActiveDescriptor
<T> ContextualInput.descriptor
private ActiveDescriptor
<?> InjecteeImpl.injecteeDescriptor
Fields in org.glassfish.hk2.utilities with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate final HashMap
<ActiveDescriptor<?>, Long> ImmediateContext.creating
private final HashMap
<ActiveDescriptor<?>, HandleAndService> ImmediateContext.currentImmediateServices
Methods in org.glassfish.hk2.utilities that return ActiveDescriptorModifier and TypeMethodDescriptionstatic <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.AliasDescriptor.getDescriptor()
Get the descriptor being aliased.ContextualInput.getDescriptor()
Returns the descriptor associated with this contextual creationInjecteeImpl.getInjecteeDescriptor()
Methods in org.glassfish.hk2.utilities that return types with arguments of type ActiveDescriptorModifier and TypeMethodDescriptionstatic 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.private List
<ActiveDescriptor<?>> ImmediateContext.getImmediateServices()
Methods in org.glassfish.hk2.utilities with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionboolean
ImmediateContext.containsKey
(ActiveDescriptor<?> descriptor) void
ImmediateContext.destroyOne
(ActiveDescriptor<?> descriptor) private void
ImmediateContext.destroyOne
(ActiveDescriptor<?> descriptor, List<ImmediateErrorHandler> errorHandlers) Destroys a single descriptor<U> U
ImmediateContext.findOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) private static String
AliasDescriptor.getAliasMetadataValue
(ActiveDescriptor<?> descriptor) 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 ActiveDescriptorModifierConstructorDescriptionAliasDescriptor
(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)
methodConstructor parameters in org.glassfish.hk2.utilities with type arguments of type ActiveDescriptor -
Uses of ActiveDescriptor in org.glassfish.hk2.utilities.binding
Methods in org.glassfish.hk2.utilities.binding that return ActiveDescriptorModifier and TypeMethodDescription<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 ActiveDescriptorModifier and TypeMethodDescription<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 ActiveDescriptorModifier and TypeClassDescriptionclass
class
class
Fields in org.jvnet.hk2.internal declared as ActiveDescriptorModifier and TypeFieldDescriptionprivate final ActiveDescriptor
<T> SystemDescriptor.activeDescriptor
private final ActiveDescriptor
<?> ValidationInformationImpl.candidate
private final ActiveDescriptor
<?> ErrorResults.descriptor
private final ActiveDescriptor
<?> InstanceLifecycleEventImpl.descriptor
private final ActiveDescriptor
<?> MethodInterceptorImpl.descriptor
private final ActiveDescriptor
<?> FactoryCreator.factoryDescriptor
private ActiveDescriptor
<?> SystemInjecteeImpl.injecteeDescriptor
private ActiveDescriptor
<T> ServiceHandleImpl.root
private ActiveDescriptor
<?> ClazzCreator.selfDescriptor
private final ActiveDescriptor
<?> MethodInterceptorHandler.underlyingDescriptor
Fields in org.jvnet.hk2.internal with type parameters of type ActiveDescriptorModifier and TypeFieldDescriptionprivate final List
<ActiveDescriptor<?>> TwoPhaseTransactionDataImpl.added
private final ConcurrentHashMap
<ThreadSpecificObject<ActiveDescriptor<?>>, Object> FactoryCreator.cycleFinder
private final List
<ActiveDescriptor<?>> NarrowResults.goodResults
private final List
<ActiveDescriptor<?>> TwoPhaseTransactionDataImpl.removed
private List
<ActiveDescriptor<?>> NarrowResults.unnarrowedResults
private final List
<ActiveDescriptor<?>> ImmediateResults.validatedImmediateResults
Methods in org.jvnet.hk2.internal that return ActiveDescriptorModifier and TypeMethodDescription<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) InstanceLifecycleEventImpl.getActiveDescriptor()
ServiceHandleImpl.getActiveDescriptor()
ServiceLocatorImpl.getBestDescriptor
(Filter filter) ValidationInformationImpl.getCandidate()
(package private) ActiveDescriptor
<?> ErrorResults.getDescriptor()
private ActiveDescriptor
<?> SystemDescriptor.getFactoryDescriptor
(Method provideMethod, Type factoryProvidedType, ServiceLocatorImpl locator, Collector collector) ServiceLocatorImpl.getInjecteeDescriptor
(Injectee injectee) 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, Type contractOrImpl, String name, Unqualified unqualified, boolean isIterable, boolean calledFromSecondChanceResolveMethod, Annotation... qualifiers) private <T> ActiveDescriptor
<T> ServiceLocatorImpl.internalGetDescriptor
(Injectee onBehalfOf, Type contractOrImpl, String name, Unqualified unqualified, boolean isIterable, Annotation... qualifiers) private ActiveDescriptor
<?> ServiceLocatorImpl.internalGetInjecteeDescriptor
(Injectee injectee, boolean calledFromSecondChanceResolveMethod) ServiceLocatorImpl.reifyDescriptor
(Descriptor descriptor) 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 ActiveDescriptorModifier and TypeMethodDescriptionList
<ActiveDescriptor<?>> TwoPhaseTransactionDataImpl.getAllAddedDescriptors()
List
<ActiveDescriptor<?>> TwoPhaseTransactionDataImpl.getAllRemovedDescriptors()
List
<ActiveDescriptor<?>> ServiceLocatorImpl.getDescriptors
(Filter filter) (package private) List
<ActiveDescriptor<?>> ImmediateResults.getImmediateResults()
(package private) List
<ActiveDescriptor<?>> NarrowResults.getResults()
List
<ActiveDescriptor<?>> PopulatorImpl.populate()
List
<ActiveDescriptor<?>> PopulatorImpl.populate
(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors) private List
<ActiveDescriptor<?>> ServiceLocatorImpl.protectedGetDescriptors
(Filter filter) Methods in org.jvnet.hk2.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescription<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
(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 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
(Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee) ServiceLocatorImpl.getAllContracts
(ActiveDescriptor<?> desc) (package private) static Utilities.Interceptors
Utilities.getAllInterceptors
(ServiceLocatorImpl impl, ActiveDescriptor<?> descriptor, Class<?> clazz, Constructor<?> c) 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 factoryprivate static Class
<?> Utilities.getFactoryProductionClass
(ActiveDescriptor<?> descriptor) This method returns the class associated with the type of the factory.static 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) private <T> ServiceHandleImpl
<T> ServiceLocatorImpl.getServiceHandleImpl
(ActiveDescriptor<T> activeDescriptor, Injectee injectee) (package private) void
ClazzCreator.initialize
(ActiveDescriptor<?> selfDescriptor, String analyzerName, Collector collector) (package private) void
ClazzCreator.initialize
(ActiveDescriptor<?> selfDescriptor, Collector collector) private <T> ServiceHandleImpl
<T> ServiceLocatorImpl.internalGetServiceHandle
(ActiveDescriptor<T> activeDescriptor, 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, 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 ActiveDescriptorModifier and TypeMethodDescription(package private) void
NarrowResults.setUnnarrowedResults
(List<ActiveDescriptor<?>> unnarrowed) Constructors in org.jvnet.hk2.internal with parameters of type ActiveDescriptorModifierConstructorDescription(package private)
ErrorResults
(ActiveDescriptor<?> descriptor, Injectee injectee, MultiException me) (package private)
FactoryCreator
(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor) (package private)
InstanceLifecycleEventImpl
(InstanceLifecycleEventType eventType, Object lifecycleObject, Map<Injectee, Object> knownInjectees, ActiveDescriptor<?> descriptor) (package private)
InstanceLifecycleEventImpl
(InstanceLifecycleEventType eventType, Object lifecycleObject, ActiveDescriptor<?> descriptor) (package private)
MethodInterceptorHandler
(ServiceLocatorImpl locator, ActiveDescriptor<?> underlyingDescriptor, Map<Method, List<org.aopalliance.intercept.MethodInterceptor>> interceptorLists) (package private)
MethodInterceptorImpl
(ServiceLocatorImpl sli, ActiveDescriptor<?> descriptor, ServiceHandleImpl<?> root, Injectee injectee) (package private)
ServiceHandleImpl
(ServiceLocatorImpl locator, ActiveDescriptor<T> root, Injectee injectee) (package private)
SystemInjecteeImpl
(Type requiredType, Set<Annotation> qualifiers, int position, 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 ActiveDescriptorModifier and TypeMethodDescriptionHK2JmxSpecifier.getJmxObject
(ActiveDescriptor<?> descriptor, Object instance) Gets the Object that should be used either directly or to be modelled.
ServiceLocator.getService(ActiveDescriptor, ServiceHandle, Injectee)