Modifier and Type | Method and Description |
---|---|
ActiveDescriptor<?> |
AOPProxyCtl.__getUnderlyingDescriptor()
This method returns the ActiveDescriptor underlying the
service for which this object is a proxy
|
<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<?> |
Injectee.getInjecteeDescriptor()
This returns the ActiveDescriptor of the injectee
if it is known
|
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<?>> |
TwoPhaseTransactionData.getAllAddedDescriptors()
Gets all ActiveDescriptors that will be added in this transaction
|
List<ActiveDescriptor<?>> |
TwoPhaseTransactionData.getAllRemovedDescriptors()
Gets all ActiveDescriptors that will be removed by this transaction
|
List<ActiveDescriptor<?>> |
ServiceLocator.getDescriptors(Filter filter)
Gets the list of descriptors that match the given filter
|
List<ActiveDescriptor<?>> |
Populator.populate()
This method will populate the service locator using the system classloader to
find the hk2-locator files from the default location of META-INF/hk2-locator/default.
|
List<ActiveDescriptor<?>> |
Populator.populate(DescriptorFileFinder fileFinder,
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 | 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 | Class and Description |
---|---|
class |
DelegatingNamedActiveDescriptor |
Modifier and Type | Method and Description |
---|---|
boolean |
ConfiguredByContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
ConfiguredByContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
ConfiguredByContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Class and Description |
---|---|
class |
CrossOverDescriptor<T> |
Constructor and Description |
---|
CrossOverDescriptor(ServiceLocator local,
ActiveDescriptor<T> localService) |
Modifier and Type | Method and Description |
---|---|
boolean |
OperationContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
OperationContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
OperationContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
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 |
InheritableThreadContext.containsKey(ActiveDescriptor<?> descriptor) |
boolean |
PerThreadContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
InheritableThreadContext.destroyOne(ActiveDescriptor<?> descriptor) |
void |
PerThreadContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
InheritableThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
<U> U |
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
boolean |
RunLevelContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
RunLevelContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
RunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
boolean |
AsyncRunLevelContext.containsKey(ActiveDescriptor<?> descriptor)
The
Context API for discovering if a descriptor has been created |
void |
AsyncRunLevelContext.destroyOne(ActiveDescriptor<?> descriptor)
The
Context API. |
<U> U |
AsyncRunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root)
This is from the
Context API, called by the wrapper |
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.
|
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.
|
ActiveDescriptor<T> |
ContextualInput.getDescriptor()
Returns the descriptor associated with this contextual creation
|
ActiveDescriptor<?> |
InjecteeImpl.getInjecteeDescriptor() |
Modifier and Type | Method and Description |
---|---|
static List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
boolean idempotent,
Class<?>... toAdd)
It is very often the case that one wishes to add classes that hk2
will automatically analyze for contracts and qualifiers to
a service locator.
|
static List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
Class<?>... toAdd)
It is very often the case that one wishes to add classes that hk2
will automatically analyze for contracts and qualifiers to
a service locator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ImmediateContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
ImmediateContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
ImmediateContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
void |
ImmediateErrorHandler.postConstructFailed(ActiveDescriptor<?> immediateService,
Throwable exception)
This is called whenever an immediate service fails in its constructor or
postConstruct method.
|
void |
ImmediateErrorHandler.preDestroyFailed(ActiveDescriptor<?> immediateService,
Throwable exception)
This is called whenever an immediate service fails in its preDestroy method.
|
void |
InjecteeImpl.setInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
Sets the descriptor to be associated with this injectee
|
Constructor and Description |
---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
String contract,
String name)
Construct an AliasDescriptor.
|
ContextualInput(ActiveDescriptor<T> descriptor,
ServiceHandle<?> root)
The inputs from the
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
method |
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) |
ActiveDescriptor<?> |
InstanceLifecycleEventImpl.getActiveDescriptor() |
ActiveDescriptor<T> |
ServiceHandleImpl.getActiveDescriptor() |
ActiveDescriptor<?> |
ServiceLocatorImpl.getBestDescriptor(Filter filter) |
ActiveDescriptor<?> |
ValidationInformationImpl.getCandidate() |
ActiveDescriptor<?> |
SystemInjecteeImpl.getInjecteeDescriptor() |
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<?>> |
TwoPhaseTransactionDataImpl.getAllAddedDescriptors() |
List<ActiveDescriptor<?>> |
TwoPhaseTransactionDataImpl.getAllRemovedDescriptors() |
List<ActiveDescriptor<?>> |
ServiceLocatorImpl.getDescriptors(Filter filter) |
List<ActiveDescriptor<?>> |
PopulatorImpl.populate() |
List<ActiveDescriptor<?>> |
PopulatorImpl.populate(DescriptorFileFinder fileFinder,
PopulatorPostProcessor... postProcessors) |
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 |
PerLookupContext.containsKey(ActiveDescriptor<?> descriptor) |
boolean |
SingletonContext.containsKey(ActiveDescriptor<?> descriptor) |
static <T> AutoActiveDescriptor<T> |
Utilities.createAutoFactoryDescriptor(Class<T> parentClazz,
ActiveDescriptor<?> factoryDescriptor,
ServiceLocatorImpl locator)
Creates a reified automatically generated descriptor
|
static <T> T |
Utilities.createService(ActiveDescriptor<T> root,
Injectee injectee,
ServiceLocatorImpl locator,
ServiceHandle<T> handle,
Class<?> requestedClass)
Creates the service (without the need for an intermediate ServiceHandle
to be created)
|
void |
PerLookupContext.destroyOne(ActiveDescriptor<?> descriptor) |
void |
SingletonContext.destroyOne(ActiveDescriptor<?> one)
Release one system descriptor
|
<T> T |
PerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
SingletonContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
ProxyUtilities.generateProxy(Class<?> requestedClass,
ServiceLocatorImpl locator,
ActiveDescriptor<T> root,
ServiceHandleImpl<T> handle,
Injectee injectee) |
static List<SystemInjecteeImpl> |
Utilities.getConstructorInjectees(Constructor<?> c,
ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructor
|
static Class<?> |
Utilities.getFactoryAwareImplementationClass(ActiveDescriptor<?> descriptor)
This utility will return the proper implementation class, taking into account that the
descriptor may be a factory
|
static List<SystemInjecteeImpl> |
Utilities.getFieldInjectees(Class<?> actualClass,
Field f,
ActiveDescriptor<?> injecteeDescriptor)
Returns the injectees for a field
|
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
|
static List<SystemInjecteeImpl> |
Utilities.getMethodInjectees(Class<?> actualClass,
Method c,
ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructor
|
static List<SystemInjecteeImpl> |
Utilities.getMethodInjectees(Class<?> actualClass,
Method c,
ActiveDescriptor<?> injecteeDescriptor,
Map<Integer,MethodParameter> knownValues)
Returns all the injectees for a constructor
|
<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 void |
Utilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor,
List<SystemInjecteeImpl> 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 | Class and Description |
---|---|
class |
SpringServiceHK2Bean<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
SpringScopeContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
SpringScopeContext.destroyOne(ActiveDescriptor<?> descriptor) |
<U> U |
SpringScopeContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.