Package | Description |
---|---|
org.glassfish.hk2.api | |
org.glassfish.hk2.internal | |
org.glassfish.hk2.utilities | |
org.glassfish.hk2.utilities.binding |
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 |
DuplicateServiceException.getExistingDescriptor()
Gets the descriptor that matched one of the idempotent
filters
|
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.
|
Constructor and Description |
---|
DuplicateServiceException(Descriptor existingDescriptor)
Called by the system to initialize the existing descriptor
that matched
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantActiveDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
ImmediateLocalLocatorFilter.matches(Descriptor d) |
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.createDescriptorFilter(Descriptor descriptorImpl)
Returns a filter that will return true an IndexedFilter that will match
the
DescriptorImpl.equals(Object) return |
static IndexedFilter |
BuilderHelper.createDescriptorFilter(Descriptor descriptorImpl,
boolean deepCopy)
Returns a filter that will return true an IndexedFilter that will match
the
DescriptorImpl.equals(Object) return |
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 |
DescriptorImpl.descriptorEquals(Descriptor a,
Descriptor b)
Tests if two descriptors are equal not taking into account the locator-id
and server-id by comparing the following fields:
implementation
contracts
name
scope
qualifiers
descriptorType
descriptorVisibility
metadata
proxiable
proxyForSameScope
analysisName
|
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) |
Copyright © 2009–2019 Oracle Corporation. All rights reserved.