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 |
DelegatingNamedActiveDescriptor |
Modifier and Type | Class and Description |
---|---|
class |
CrossOverDescriptor<T> |
Modifier and Type | Class and Description |
---|---|
class |
OperationDescriptor<T extends Annotation> |
Modifier and Type | Class and Description |
---|---|
class |
ConstantActiveDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
ImmediateLocalLocatorFilter.matches(Descriptor d) |
boolean |
IndexedFilterImpl.matches(Descriptor d) |
boolean |
SpecificFilterImpl.matches(Descriptor d) |
boolean |
StarFilter.matches(Descriptor d) |
Modifier and Type | Method and Description |
---|---|
Descriptor |
ErrorInformation.getFailedDescriptor()
Returns the descriptor associated with this failure,
or null if the descriptor could not be determined
|
Modifier and Type | Method and Description |
---|---|
Descriptor |
ErrorInformationImpl.getFailedDescriptor() |
Constructor and Description |
---|
WasCancelledException(Descriptor d)
The given descriptor was processing during a
cancellation of the job
|
WouldBlockException(Descriptor d)
This indicates a blocking condition on a given descriptor
|
Modifier and Type | Method and Description |
---|---|
static int |
Utilities.getRunLevelMode(ServiceLocator locator,
Descriptor descriptor,
Integer modeOverride)
Get the run level mode from the metadata of the given descriptor.
|
static int |
Utilities.getRunLevelValue(ServiceLocator locator,
Descriptor descriptor)
Get the run level value from the metadata of the given descriptor.
|
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) |
Modifier and Type | Class and Description |
---|---|
class |
GuiceServiceHk2Bean<T> |
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) |
Modifier and Type | Class and Description |
---|---|
class |
SpringServiceHK2Bean<T> |
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.