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. moduleDescriptorsMethods 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 theDescriptorImplwriteObject 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.booleanContext. containsKey(ActiveDescriptor<?> descriptor)Determines if this context has a value for the given keyvoidContext. destroyOne(ActiveDescriptor<?> descriptor)This method is called whenServiceHandle.destroy()method is called.<U> UContext. 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> TServiceLocator. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)<T> TServiceLocator. 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 aServiceHandlethat can be used to get and destroy the service described by theActiveDescriptor.<T> ServiceHandle<T>ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)Gets aServiceHandlethat 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 theDescriptorImplwriteObject 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 classDelegatingNamedActiveDescriptorFields in org.glassfish.hk2.configuration.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<?>DelegatingNamedActiveDescriptor. parentFields in org.glassfish.hk2.configuration.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashSet<ActiveDescriptor<?>>ConfigurationListener. allProgenitorsprivate java.util.concurrent.ConcurrentHashMap<ActiveDescriptor<?>,BeanInfo>ConfiguredByInjectionResolver. beanMapprivate java.util.HashMap<ActiveDescriptor<?>,java.lang.Object>ConfiguredByContext. dbprivate static java.lang.ThreadLocal<ActiveDescriptor<?>>ConfiguredByContext. workingOnMethods 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) BeanInfoConfiguredByInjectionResolver. 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)booleanConfiguredByContext. containsKey(ActiveDescriptor<?> descriptor)voidConfiguredByContext. destroyOne(ActiveDescriptor<?> descriptor)(package private) java.lang.ObjectConfiguredByContext. findOnly(ActiveDescriptor<?> descriptor)<U> UConfiguredByContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)private java.lang.StringConfigurationListener. getTypeFromConfiguredBy(ActiveDescriptor<?> descriptor)private <U> UConfiguredByContext. internalFindOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)private static booleanConfigurationListener. isEager(ActiveDescriptor<?> descriptor)private voidConfigurationListener. 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) voidConfiguredByInjectionResolver. 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. descriptorprivate ActiveDescriptor<TopicDistributionService>DefaultTopicDistributionService. selfDescriptorFields 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. descriptor2ClassesMethods in org.glassfish.hk2.extras.events.internal with parameters of type ActiveDescriptor Modifier and Type Method Description private static DefaultTopicDistributionService.SubscriberInfoDefaultTopicDistributionService. 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 classCrossOverDescriptor<T>Fields in org.glassfish.hk2.extras.hk2bridge.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<T>CrossOverDescriptor. remoteFields in org.glassfish.hk2.extras.hk2bridge.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.List<ActiveDescriptor<?>>Hk2BridgeImpl. mirroredDescriptorsMethod parameters in org.glassfish.hk2.extras.hk2bridge.internal with type arguments of type ActiveDescriptor Modifier and Type Method Description private voidHk2BridgeImpl. 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. creatingprivate java.util.HashMap<OperationHandleImpl<T>,java.util.LinkedHashMap<ActiveDescriptor<?>,java.lang.Object>>OperationContext. operationMapMethods in org.glassfish.hk2.extras.operation with parameters of type ActiveDescriptor Modifier and Type Method Description booleanOperationContext. containsKey(ActiveDescriptor<?> descriptor)voidOperationContext. destroyOne(ActiveDescriptor<?> descriptor)<U> UOperationContext. 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 classOperationDescriptor<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 classActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T>classConstantActiveDescriptor<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. instancesprivate java.util.HashMap<ActiveDescriptor<?>,java.lang.Object>PerThreadContext.PerContextThreadWrapper. instancesMethods 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 booleanInheritableThreadContext. containsKey(ActiveDescriptor<?> descriptor)booleanPerThreadContext. containsKey(ActiveDescriptor<?> descriptor)voidInheritableThreadContext. destroyOne(ActiveDescriptor<?> descriptor)voidPerThreadContext. destroyOne(ActiveDescriptor<?> descriptor)<U> UInheritableThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)<U> UPerThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)java.lang.ObjectInheritableThreadContext.InheritableContextThreadWrapper. get(ActiveDescriptor<?> d)java.lang.ObjectPerThreadContext.PerContextThreadWrapper. get(ActiveDescriptor<?> d)booleanInheritableThreadContext.InheritableContextThreadWrapper. has(ActiveDescriptor<?> d)booleanPerThreadContext.PerContextThreadWrapper. has(ActiveDescriptor<?> d)voidInheritableThreadContext.InheritableContextThreadWrapper. put(ActiveDescriptor<?> d, java.lang.Object v)voidPerThreadContext.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 booleanRunLevelContext. containsKey(ActiveDescriptor<?> descriptor)voidRunLevelContext. destroyOne(ActiveDescriptor<?> descriptor)<U> URunLevelContext. 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. lastErrorDescriptorFields in org.glassfish.hk2.runlevel.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.HashSet<ActiveDescriptor<?>>CurrentTaskFuture.QueueRunner. alreadyTriedprivate java.util.Map<ActiveDescriptor<?>,java.lang.Object>AsyncRunLevelContext. backingMapThe backing maps for this context.private java.util.HashMap<ActiveDescriptor<?>,java.lang.Long>AsyncRunLevelContext. creatingDescriptorsThe set of services currently being createdprivate java.util.HashSet<ActiveDescriptor<?>>AsyncRunLevelContext. hardCancelledDescriptorsThe set of descriptors that have been hard cancelledprivate java.util.Map<ActiveDescriptor<?>,java.lang.Throwable>AsyncRunLevelContext. levelErrorMapprivate java.util.LinkedList<ActiveDescriptor<?>>AsyncRunLevelContext. orderedCreationListprivate java.util.List<ActiveDescriptor<?>>CurrentTaskFuture.DownAllTheWay. queueprivate java.util.List<ActiveDescriptor<?>>CurrentTaskFuture.DownQueueRunner. queueprivate java.util.List<ActiveDescriptor<?>>CurrentTaskFuture.HardCancelDownTimer. queueMethods 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 booleanAsyncRunLevelContext. containsKey(ActiveDescriptor<?> descriptor)TheContextAPI for discovering if a descriptor has been createdvoidAsyncRunLevelContext. destroyOne(ActiveDescriptor<?> descriptor)TheContextAPI.<U> UAsyncRunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)This is from theContextAPI, called by the wrapper(package private) voidAsyncRunLevelContext. hardCancelOne(ActiveDescriptor<?> descriptor)No need to lock this, it is called with the lock already heldprivate booleanCurrentTaskFuture.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.StringAsyncRunLevelContext. oneLineDescriptor(ActiveDescriptor<?> descriptor)private voidAsyncRunLevelContext. validate(ActiveDescriptor<?> descriptor, int currentLevel)Verifies that the run level value of theRunLevelannotated service described by the given descriptor is valid for activation.(package private) booleanAsyncRunLevelContext. wouldBlockRightNow(ActiveDescriptor<?> desc)Method parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ActiveDescriptor Modifier and Type Method Description private booleanCurrentTaskFuture.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 classAbstractActiveDescriptor<T>This class can be used as a starting point for those writing their own ActiveDescriptor.classAliasDescriptor<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. descriptorThe descriptor that this descriptor will alias.private ActiveDescriptor<T>ContextualInput. descriptorprivate ActiveDescriptor<?>InjecteeImpl. injecteeDescriptorFields 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. creatingprivate java.util.HashMap<ActiveDescriptor<?>,HandleAndService>ImmediateContext. currentImmediateServicesMethods 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 booleanImmediateContext. containsKey(ActiveDescriptor<?> descriptor)voidImmediateContext. destroyOne(ActiveDescriptor<?> descriptor)private voidImmediateContext. destroyOne(ActiveDescriptor<?> descriptor, java.util.List<ImmediateErrorHandler> errorHandlers)Destroys a single descriptor<U> UImmediateContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)private static java.lang.StringAliasDescriptor. getAliasMetadataValue(ActiveDescriptor<?> descriptor)voidImmediateErrorHandler. postConstructFailed(ActiveDescriptor<?> immediateService, java.lang.Throwable exception)This is called whenever an immediate service fails in its constructor or postConstruct method.voidImmediateErrorHandler. preDestroyFailed(ActiveDescriptor<?> immediateService, java.lang.Throwable exception)This is called whenever an immediate service fails in its preDestroy method.voidInjecteeImpl. 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 classAutoActiveDescriptor<T>classConstantActiveDescriptor<T>classSystemDescriptor<T>Fields in org.jvnet.hk2.internal declared as ActiveDescriptor Modifier and Type Field Description private ActiveDescriptor<T>SystemDescriptor. activeDescriptorprivate ActiveDescriptor<?>ValidationInformationImpl. candidateprivate ActiveDescriptor<?>ErrorResults. descriptorprivate ActiveDescriptor<?>InstanceLifecycleEventImpl. descriptorprivate ActiveDescriptor<?>MethodInterceptorImpl. descriptorprivate ActiveDescriptor<?>FactoryCreator. factoryDescriptorprivate ActiveDescriptor<?>SystemInjecteeImpl. injecteeDescriptorprivate ActiveDescriptor<T>ServiceHandleImpl. rootprivate ActiveDescriptor<?>ClazzCreator. selfDescriptorprivate ActiveDescriptor<?>MethodInterceptorHandler. underlyingDescriptorFields in org.jvnet.hk2.internal with type parameters of type ActiveDescriptor Modifier and Type Field Description private java.util.List<ActiveDescriptor<?>>TwoPhaseTransactionDataImpl. addedprivate java.util.concurrent.ConcurrentHashMap<ThreadSpecificObject<ActiveDescriptor<?>>,java.lang.Object>FactoryCreator. cycleFinderprivate java.util.List<ActiveDescriptor<?>>NarrowResults. goodResultsprivate java.util.List<ActiveDescriptor<?>>TwoPhaseTransactionDataImpl. removedprivate java.util.List<ActiveDescriptor<?>>NarrowResults. unnarrowedResultsprivate java.util.List<ActiveDescriptor<?>>ImmediateResults. validatedImmediateResultsMethods 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) voidNarrowResults. addError(ActiveDescriptor<?> fail, Injectee injectee, MultiException me)(package private) voidNarrowResults. addGoodResult(ActiveDescriptor<?> result)(package private) voidImmediateResults. addValidatedResult(ActiveDescriptor<?> addMe)private static voidDynamicConfigurationImpl. checkReifiedDescriptor(ActiveDescriptor<?> d)booleanPerLookupContext. containsKey(ActiveDescriptor<?> descriptor)booleanSingletonContext. 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> TUtilities. 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)voidPerLookupContext. destroyOne(ActiveDescriptor<?> descriptor)voidSingletonContext. destroyOne(ActiveDescriptor<?> one)Release one system descriptorprivate static booleanServiceLocatorImpl. doTrace(ActiveDescriptor<?> desc)<T> TPerLookupContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)<T> TSingletonContext. findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)<T> TProxyUtilities. 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.InterceptorsUtilities. 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> TServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)Deprecated.<T> TServiceLocatorImpl. 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) voidClazzCreator. initialize(ActiveDescriptor<?> selfDescriptor, java.lang.String analyzerName, Collector collector)(package private) voidClazzCreator. initialize(ActiveDescriptor<?> selfDescriptor, Collector collector)private <T> ServiceHandleImpl<T>ServiceLocatorImpl. internalGetServiceHandle(ActiveDescriptor<T> activeDescriptor, java.lang.reflect.Type requestedType, Injectee originalRequest)private static booleanUtilities. isProxiable(ActiveDescriptor<?> desc, Injectee injectee)This method determines whether or not the descriptor should be proxied.(package private) voidSystemInjecteeImpl. resetInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)(package private) voidAutoActiveDescriptor. resetSelfDescriptor(ActiveDescriptor<?> toMe)(package private) voidClazzCreator. 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) voidTwoPhaseTransactionDataImpl. toAdd(ActiveDescriptor<?> addMe)(package private) voidTwoPhaseTransactionDataImpl. toRemove(ActiveDescriptor<?> removeMe)static voidUtilities. 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) voidNarrowResults. 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.ObjectHK2JmxSpecifier. getJmxObject(ActiveDescriptor<?> descriptor, java.lang.Object instance)Gets the Object that should be used either directly or to be modelled.
-