|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ActiveDescriptor | |
|---|---|
| org.glassfish.hk2.api | |
| org.glassfish.hk2.internal | |
| org.glassfish.hk2.utilities | |
| Uses of ActiveDescriptor in org.glassfish.hk2.api |
|---|
| Methods in org.glassfish.hk2.api that return ActiveDescriptor | ||
|---|---|---|
|
DynamicConfiguration.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This allows third party systems to add reified active descriptors to the system. |
|
|
DynamicConfiguration.addActiveDescriptor(Class<T> rawClass)
This adds an active descriptor to the system based completely on the analysis of the given class. |
|
|
DynamicConfiguration.bind(Descriptor key)
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 handle |
|
ActiveDescriptor<?> |
ServiceLocator.getBestDescriptor(Filter filter)
Gets the descriptor that best matches this filter, taking ranking and service id into account |
|
ActiveDescriptor<?> |
ValidationInformation.getCandidate()
The candidate descriptor for this operation |
|
ActiveDescriptor<?> |
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 | |
|---|---|
List<ActiveDescriptor<?>> |
ServiceLocator.getDescriptors(Filter filter)
Gets the list of descriptors that match the given filter |
| Methods in org.glassfish.hk2.api with parameters of type ActiveDescriptor | ||
|---|---|---|
|
DynamicConfiguration.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
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 key |
|
void |
Context.destroyOne(ActiveDescriptor<?> descriptor)
This method is called when ServiceHandle.destroy() method is called. |
|
|
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. |
|
|
ServiceLocator.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
This method should be called by code resolving injectee's on behalf of some root service, usually by an implementation of InjectionResolver.resolve(Injectee, ServiceHandle). |
|
|
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets a ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor. |
|
|
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee)
Gets a ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor. |
|
| Uses of ActiveDescriptor in org.glassfish.hk2.internal |
|---|
| Classes in org.glassfish.hk2.internal that implement ActiveDescriptor | |
|---|---|
class |
ConstantActiveDescriptor<T>
|
| Methods in org.glassfish.hk2.internal with parameters of type ActiveDescriptor | ||
|---|---|---|
boolean |
PerThreadContext.containsKey(ActiveDescriptor<?> descriptor)
|
|
void |
PerThreadContext.destroyOne(ActiveDescriptor<?> descriptor)
|
|
|
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root)
|
|
| Uses of ActiveDescriptor in org.glassfish.hk2.utilities |
|---|
| Classes in org.glassfish.hk2.utilities that implement ActiveDescriptor | |
|---|---|
class |
AbstractActiveDescriptor<T>
This class can be used as a starting point for those writing their own ActiveDescriptor. |
class |
AliasDescriptor<T>
A descriptor class that serves as an alias for another descriptor. |
| Methods in org.glassfish.hk2.utilities that return ActiveDescriptor | ||
|---|---|---|
static
|
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
Object constant)
This method adds one existing object to the given service locator. |
|
static
|
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
Object constant,
String name,
Type... contracts)
This method adds one existing object to the given service locator. |
|
static
|
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
|
ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
Finds a descriptor in the given service locator. |
|
ActiveDescriptor<T> |
AliasDescriptor.getDescriptor()
Get the descriptor being aliased. |
|
| Constructors in org.glassfish.hk2.utilities with parameters of type ActiveDescriptor | |
|---|---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
String contract,
String name)
Construct an AliasDescriptor. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||