Uses of Interface
org.glassfish.hk2.api.ActiveDescriptor
Packages that use ActiveDescriptor
Package
Description
-
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.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.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)
ServiceLocator.getService(ActiveDescriptor, ServiceHandle, Injectee)