Package | Description |
---|---|
org.glassfish.hk2.api | |
org.glassfish.hk2.internal | |
org.glassfish.hk2.utilities | |
org.glassfish.hk2.utilities.binding | |
org.jvnet.hk2.internal |
Modifier and Type | Interface and Description |
---|---|
interface |
ActiveDescriptor<T>
An ActiveDescriptor contains information about a Descriptor after it has been reified.
|
Modifier and Type | Method and Description |
---|---|
Descriptor |
ErrorInformation.getDescriptor()
This will contain the active descriptor that is associated
with this failure.
|
Descriptor |
FactoryDescriptors.getFactoryAsAFactory()
This returns the factory as a factory for some other type.
|
Descriptor |
FactoryDescriptors.getFactoryAsAService()
This returns the factory as a service itself.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
boolean |
Filter.matches(Descriptor d)
Returns true if this filter matches the
given object
|
ActiveDescriptor<?> |
ServiceLocator.reifyDescriptor(Descriptor descriptor)
Converts a descriptor to an ActiveDescriptor.
|
ActiveDescriptor<?> |
ServiceLocator.reifyDescriptor(Descriptor descriptor,
Injectee injectee)
Converts a descriptor to an ActiveDescriptor.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantActiveDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
StarFilter.matches(Descriptor d) |
boolean |
SpecificFilterImpl.matches(Descriptor d) |
boolean |
IndexedFilterImpl.matches(Descriptor d) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractActiveDescriptor<T>
This class can be used as a starting point for those writing their own
ActiveDescriptor.
|
class |
AliasDescriptor<T>
An active descriptor class that serves as an alias for another descriptor.
|
class |
DescriptorImpl
The implementation of the descriptor itself, with the
bonus of being externalizable, and having writeable fields
|
Modifier and Type | Method and Description |
---|---|
Descriptor |
FactoryDescriptorsImpl.getFactoryAsAFactory() |
Descriptor |
FactoryDescriptorsImpl.getFactoryAsAService() |
Modifier and Type | Method and Description |
---|---|
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 IndexedFilter |
BuilderHelper.createSpecificDescriptorFilter(Descriptor descriptor)
This method creates a filter that will match one and only one descriptor.
|
static DescriptorImpl |
BuilderHelper.deepCopyDescriptor(Descriptor copyMe)
Makes a deep copy of the incoming descriptor
|
static boolean |
BuilderHelper.filterMatches(Descriptor baseDescriptor,
Filter filter)
Determines if the given descriptor matches the given filter.
|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
Finds a descriptor in the given service locator.
|
static String |
ServiceLocatorUtilities.getOneMetadataField(Descriptor d,
String field)
Gets one value from a metadata field from the given descriptor
|
static <T> T |
ServiceLocatorUtilities.getService(ServiceLocator locator,
Descriptor descriptor)
Returns the service in this service locator given the current descriptor.
|
boolean |
OrFilter.matches(Descriptor d) |
static void |
DescriptorImpl.pretty(StringBuffer sb,
Descriptor d)
Will pretty print a descriptor
|
static void |
ServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
This method will attempt to remove descriptors matching the passed in descriptor from
the given locator.
|
static void |
ServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator,
Descriptor descriptor,
boolean includeAliasDescriptors)
This method will attempt to remove descriptors matching the passed in descriptor from
the given locator.
|
Constructor and Description |
---|
AbstractActiveDescriptor(Descriptor baseDescriptor)
Creates a NON reified ActiveDescriptor based on a copy of the given
baseDescriptor.
|
DescriptorImpl(Descriptor copyMe)
Does a deep copy of the incoming descriptor
|
FactoryDescriptorsImpl(Descriptor asService,
Descriptor asProvideMethod)
This creates a descriptor pair describing a
Factory
and the associated Factory.provide() method |
Modifier and Type | Method and Description |
---|---|
<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) |
Modifier and Type | Class and Description |
---|---|
class |
AutoActiveDescriptor<T> |
class |
SystemDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
Descriptor |
ErrorInformationImpl.getDescriptor() |
Modifier and Type | Method and Description |
---|---|
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.bind(Descriptor key) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.bind(Descriptor key,
boolean requiresDeepCopy) |
int |
DescriptorComparator.compare(Descriptor o1,
Descriptor o2) |
static ScopeInfo |
Utilities.getScopeAnnotationType(AnnotatedElement annotatedGuy,
Descriptor defaultScope,
Collector collector)
Returns the scope of this thing
|
static Class<? extends Annotation> |
Utilities.getScopeAnnotationType(Class<?> fromThis,
Descriptor defaultScope)
Returns the scope of this thing
|
static Class<?> |
Utilities.loadClass(String loadMe,
Descriptor fromMe,
Collector collector)
Loads the class using the loader from the given descriptor or the
classloader of the utilities class otherwise
|
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor,
Injectee injectee) |
Copyright © 2009-2015 Oracle Corporation. All Rights Reserved.