Uses of Interface
org.glassfish.hk2.api.ActiveDescriptor
Packages that use ActiveDescriptor
Package
Description
-
Uses of ActiveDescriptor in com.sun.enterprise.module.common_impl
Methods in com.sun.enterprise.module.common_impl that return types with arguments of type 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 TypeMethodDescriptionprotected 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 theDescriptorImplwriteObject 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.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) Deprecated.<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 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 theDescriptorImplwriteObject method. -
Uses of ActiveDescriptor in org.glassfish.hk2.configuration.internal
Classes in org.glassfish.hk2.configuration.internal that implement ActiveDescriptorMethods in org.glassfish.hk2.configuration.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanConfiguredByContext.containsKey(ActiveDescriptor<?> descriptor) voidConfiguredByContext.destroyOne(ActiveDescriptor<?> descriptor) <U> UConfiguredByContext.findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) -
Uses of ActiveDescriptor in org.glassfish.hk2.extras.hk2bridge.internal
Classes in org.glassfish.hk2.extras.hk2bridge.internal that implement ActiveDescriptorConstructors 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
Methods in org.glassfish.hk2.extras.operation with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanOperationContext.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 -
Uses of ActiveDescriptor in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement ActiveDescriptorMethods in org.glassfish.hk2.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanInheritableThreadContext.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) -
Uses of ActiveDescriptor in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanRunLevelContext.containsKey(ActiveDescriptor<?> descriptor) voidRunLevelContext.destroyOne(ActiveDescriptor<?> descriptor) <U> URunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) -
Uses of ActiveDescriptor in org.glassfish.hk2.runlevel.internal
Methods in org.glassfish.hk2.runlevel.internal with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanAsyncRunLevelContext.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 -
Uses of ActiveDescriptor in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement ActiveDescriptorModifier and TypeClassDescriptionclassThis class can be used as a starting point for those writing their own ActiveDescriptor.classAn active descriptor class that serves as an alias for another descriptor.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.Methods in org.glassfish.hk2.utilities with parameters of type ActiveDescriptorModifier and TypeMethodDescriptionbooleanImmediateContext.containsKey(ActiveDescriptor<?> descriptor) voidImmediateContext.destroyOne(ActiveDescriptor<?> descriptor) <U> UImmediateContext.findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) voidImmediateErrorHandler.postConstructFailed(ActiveDescriptor<?> immediateService, Throwable exception) This is called whenever an immediate service fails in its constructor or postConstruct method.voidImmediateErrorHandler.preDestroyFailed(ActiveDescriptor<?> immediateService, 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 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)method -
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 TypeClassDescriptionclassclassclassMethods 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()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 descriptorServiceLocatorImpl.reifyDescriptor(Descriptor descriptor) ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor, 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) List<ActiveDescriptor<?>> PopulatorImpl.populate()List<ActiveDescriptor<?>> PopulatorImpl.populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors) 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) booleanPerLookupContext.containsKey(ActiveDescriptor<?> descriptor) booleanSingletonContext.containsKey(ActiveDescriptor<?> descriptor) static <T> AutoActiveDescriptor<T> Utilities.createAutoFactoryDescriptor(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, 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 descriptor<T> TPerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) <T> TSingletonContext.findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) <T> TProxyUtilities.generateProxy(Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee) static List<SystemInjecteeImpl> Utilities.getConstructorInjectees(Constructor<?> c, ActiveDescriptor<?> injecteeDescriptor) Returns all the injectees for a constructorstatic Class<?> Utilities.getFactoryAwareImplementationClass(ActiveDescriptor<?> descriptor) This utility will return the proper implementation class, taking into account that the descriptor may be a factorystatic List<SystemInjecteeImpl> Utilities.getFieldInjectees(Class<?> actualClass, Field f, ActiveDescriptor<?> injecteeDescriptor) Returns the injectees for a fieldstatic Class<? extends Annotation> Utilities.getInjectionResolverType(ActiveDescriptor<?> desc) Will return the class of the injection resolver annotation type, or null if no injection resolver annotation can be foundstatic List<SystemInjecteeImpl> Utilities.getMethodInjectees(Class<?> actualClass, Method c, ActiveDescriptor<?> injecteeDescriptor) Returns all the injectees for a constructorstatic List<SystemInjecteeImpl> Utilities.getMethodInjectees(Class<?> actualClass, Method c, ActiveDescriptor<?> injecteeDescriptor, Map<Integer, MethodParameter> knownValues) Returns all the injectees for a constructor<T> 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) static voidUtilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor, List<SystemInjecteeImpl> injectees, Collector collector) This method validates a list of injectees to ensure that any self injectees have the proper set of requirements.Constructors in org.jvnet.hk2.internal with parameters of type ActiveDescriptorModifierConstructorDescriptionValidationInformationImpl(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)