Modifier and Type | Method and Description |
---|---|
protected abstract List<ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Method and Description |
---|---|
protected List<ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Method and Description |
---|---|
protected List<ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
protected List<ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Method and Description |
---|---|
<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.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.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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
List<ActiveDescriptor<?>> |
ServiceLocator.getDescriptors(Filter filter)
Gets the list of descriptors that match the given filter
|
Modifier and Type | Method and Description |
---|---|
<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.
|
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. |
<U> U |
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.
|
<T> T |
ServiceLocator.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
|
<T> T |
ServiceLocator.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 of
InjectionResolver.resolve(Injectee, ServiceHandle) . |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets a
ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor . |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee)
Gets a
ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor . |
Modifier and Type | Method and Description |
---|---|
static List<ActiveDescriptor> |
HK2Populator.populate(ServiceLocator serviceLocator,
DescriptorFileFinder fileFinder,
List<? extends PopulatorPostProcessor> postProcessors)
This method can be used to populate the service locator with files that
have been written out using the
DescriptorImpl writeObject method. |
Modifier and Type | Class and Description |
---|---|
class |
ConstantActiveDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
PerThreadContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
PerThreadContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
void |
Sorter.sort(List<ActiveDescriptor<?>> descriptors)
Sort the given list of run level service descriptors.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AsyncRunLevelContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
AsyncRunLevelContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
AsyncRunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
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>
A descriptor class that serves as an alias for another descriptor.
|
Modifier and Type | Method and Description |
---|---|
static <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.
|
ActiveDescriptor<T> |
AliasDescriptor.getDescriptor()
Get the descriptor being aliased.
|
Constructor and Description |
---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
String contract,
String name)
Construct an AliasDescriptor.
|
Modifier and Type | Method and Description |
---|---|
<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.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.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 | Method and Description |
---|---|
<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) |
Modifier and Type | Class and Description |
---|---|
class |
GuiceServiceHk2Bean<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
GuiceScopeContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
GuiceScopeContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
GuiceScopeContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Class and Description |
---|---|
class |
AutoActiveDescriptor<T> |
class |
SystemDescriptor<T> |
Modifier and Type | Method and Description |
---|---|
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor,
boolean requiresDeepCopy) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.addActiveDescriptor(Class<T> rawClass) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.bind(Descriptor key) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.bind(Descriptor key,
boolean requiresDeepCopy) |
static <T> ActiveDescriptor<T> |
Utilities.createAutoDescriptor(Class<T> clazz,
ServiceLocatorImpl locator)
Creates a reified automatically generated descriptor
|
ActiveDescriptor<?> |
InstanceLifecycleEventImpl.getActiveDescriptor() |
ActiveDescriptor<T> |
ServiceHandleImpl.getActiveDescriptor() |
ActiveDescriptor<?> |
ServiceLocatorImpl.getBestDescriptor(Filter filter) |
ActiveDescriptor<?> |
ValidationInformationImpl.getCandidate() |
ActiveDescriptor<?> |
ServiceLocatorImpl.getInjecteeDescriptor(Injectee injectee) |
static ActiveDescriptor<ServiceLocator> |
Utilities.getLocatorDescriptor(ServiceLocator locator)
Returns a constant ActiveDescriptor for the basic ServiceLocator
|
static ActiveDescriptor<InjectionResolver<javax.inject.Inject>> |
Utilities.getThreeThirtyDescriptor(ServiceLocatorImpl locator)
Creates a Three Thirty constant active descriptor
|
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor,
Injectee injectee) |
Modifier and Type | Method and Description |
---|---|
List<ActiveDescriptor<?>> |
ServiceLocatorImpl.getDescriptors(Filter filter) |
Modifier and Type | Method and Description |
---|---|
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor) |
<T> ActiveDescriptor<T> |
DynamicConfigurationImpl.addActiveDescriptor(ActiveDescriptor<T> activeDescriptor,
boolean requiresDeepCopy) |
boolean |
SingletonContext.containsKey(ActiveDescriptor<?> descriptor) |
boolean |
PerLookupContext.containsKey(ActiveDescriptor<?> descriptor) |
static <T> T |
Utilities.createService(ActiveDescriptor<T> root,
Injectee injectee,
ServiceLocatorImpl locator,
ServiceHandle<T> handle,
Class<?> requestedClass) |
void |
SingletonContext.destroyOne(ActiveDescriptor<?> one)
Release one system descriptor
|
void |
PerLookupContext.destroyOne(ActiveDescriptor<?> descriptor) |
<T> T |
SingletonContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
PerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
static Class<? extends Annotation> |
Utilities.getInjectionResolverType(ActiveDescriptor<?> desc)
Will return the class of the injection resolver annotation type, or null if
no injection resolver annotation can be found
|
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
Deprecated.
|
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root,
Injectee originalRequest) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee) |
static boolean |
Utilities.isProxiable(ActiveDescriptor<?> desc)
This method determines whether or not the descriptor should be proxied.
|
static void |
Utilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor,
List<Injectee> injectees,
Collector collector)
This method validates a list of injectees to ensure that any self injectees have
the proper set of requirements.
|
Constructor and Description |
---|
ValidationInformationImpl(Operation operation,
ActiveDescriptor<?> candidate)
Creates the validation information
|
ValidationInformationImpl(Operation operation,
ActiveDescriptor<?> candidate,
Injectee injectee,
Filter filter)
Creates the validation information
|
Modifier and Type | Method and Description |
---|---|
List<ActiveDescriptor> |
AbstractOSGiModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Copyright © 2013 Oracle Corporation. All rights reserved.