Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Module,java.util.Map<ServiceLocator,java.util.List<ActiveDescriptor>>> |
AbstractModulesRegistryImpl.moduleDescriptors |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
(package private) java.util.List<ActiveDescriptor> |
ModuleImpl.parseInhabitants(java.lang.String name,
java.util.List<PopulatorPostProcessor> postProcessors)
Parses all the inhabitants descriptors of the given name in this module.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
protected java.util.List<ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
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(java.lang.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 |
---|---|
java.util.List<ActiveDescriptor<?>> |
ServiceLocator.getDescriptors(Filter filter)
Gets the list of descriptors that match the given filter
|
java.util.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.
|
java.util.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 | Method and Description |
---|---|
static java.util.List<ActiveDescriptor> |
HK2Populator.populate(ServiceLocator serviceLocator,
DescriptorFileFinder fileFinder,
java.util.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 |
DelegatingNamedActiveDescriptor |
Modifier and Type | Field and Description |
---|---|
private ActiveDescriptor<?> |
DelegatingNamedActiveDescriptor.parent |
Modifier and Type | Field and Description |
---|---|
private java.util.HashSet<ActiveDescriptor<?>> |
ConfigurationListener.allProgenitors |
private java.util.concurrent.ConcurrentHashMap<ActiveDescriptor<?>,BeanInfo> |
ConfiguredByInjectionResolver.beanMap |
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object> |
ConfiguredByContext.db |
private static java.lang.ThreadLocal<ActiveDescriptor<?>> |
ConfiguredByContext.workingOn |
Modifier and Type | Method and Description |
---|---|
private ActiveDescriptor<?> |
ConfigurationListener.addInstanceDescriptor(DynamicConfiguration config,
ActiveDescriptor<?> parent,
java.lang.String name,
java.lang.String type,
java.lang.Object bean) |
(package private) ActiveDescriptor<?> |
ConfiguredByContext.getWorkingOn() |
Modifier and Type | Method and Description |
---|---|
(package private) BeanInfo |
ConfiguredByInjectionResolver.addBean(ActiveDescriptor<?> descriptor,
java.lang.Object bean,
java.lang.String type) |
private ActiveDescriptor<?> |
ConfigurationListener.addInstanceDescriptor(DynamicConfiguration config,
ActiveDescriptor<?> parent,
java.lang.String name,
java.lang.String type,
java.lang.Object bean) |
boolean |
ConfiguredByContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
ConfiguredByContext.destroyOne(ActiveDescriptor<?> descriptor) |
(package private) java.lang.Object |
ConfiguredByContext.findOnly(ActiveDescriptor<?> descriptor) |
<U> U |
ConfiguredByContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
private java.lang.String |
ConfigurationListener.getTypeFromConfiguredBy(ActiveDescriptor<?> descriptor) |
private <U> U |
ConfiguredByContext.internalFindOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
private static boolean |
ConfigurationListener.isEager(ActiveDescriptor<?> descriptor) |
private void |
ConfigurationListener.modifyInstanceDescriptor(ActiveDescriptor<?> parent,
java.lang.String name,
java.lang.Object bean,
java.lang.String typeName,
java.util.List<java.beans.PropertyChangeEvent> changes) |
(package private) void |
ConfiguredByInjectionResolver.removeBean(ActiveDescriptor<?> descriptor) |
Constructor and Description |
---|
DelegatingNamedActiveDescriptor(ActiveDescriptor<?> parent,
java.lang.String name) |
Modifier and Type | Field and Description |
---|---|
private ActiveDescriptor<?> |
DefaultTopicDistributionService.ActivatorClassKey.descriptor |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<ActiveDescriptor<?>,java.util.Set<java.lang.Class<?>>> |
DefaultTopicDistributionService.descriptor2Classes |
Modifier and Type | Method and Description |
---|---|
private static DefaultTopicDistributionService.SubscriberInfo |
DefaultTopicDistributionService.generateSubscriberInfo(ActiveDescriptor<?> injecteeDescriptor,
java.lang.reflect.Method subscriber,
java.lang.reflect.Method useSubscriber,
int subscribeToPosition,
java.lang.annotation.Annotation[][] paramAnnotations) |
private java.util.List<DefaultTopicDistributionService.FireResults> |
DefaultTopicDistributionService.handleDescriptorToClass(ActiveDescriptor<?> descriptor,
java.lang.Class<?> clazz,
java.lang.reflect.Type eventType,
Topic<?> topic) |
Constructor and Description |
---|
ActivatorClassKey(ActiveDescriptor<?> descriptor,
java.lang.Class<?> clazz) |
Modifier and Type | Class and Description |
---|---|
class |
CrossOverDescriptor<T> |
Modifier and Type | Field and Description |
---|---|
private ActiveDescriptor<T> |
CrossOverDescriptor.remote |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ActiveDescriptor<?>> |
Hk2BridgeImpl.mirroredDescriptors |
Modifier and Type | Method and Description |
---|---|
private void |
Hk2BridgeImpl.handleChange(java.util.List<ActiveDescriptor<?>> newDescriptors) |
Constructor and Description |
---|
CrossOverDescriptor(ServiceLocator local,
ActiveDescriptor<T> localService) |
Modifier and Type | Field and Description |
---|---|
private java.util.HashSet<ActiveDescriptor<?>> |
OperationContext.creating |
private java.util.HashMap<OperationHandleImpl<T>,java.util.LinkedHashMap<ActiveDescriptor<?>,java.lang.Object>> |
OperationContext.operationMap |
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 java.lang.annotation.Annotation> |
Modifier and Type | Field and Description |
---|---|
private ActiveDescriptor<?> |
SingleOperationManager.operationDescriptor |
Modifier and Type | Class and Description |
---|---|
private static class |
ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T> |
class |
ConstantActiveDescriptor<T> |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object> |
InheritableThreadContext.InheritableContextThreadWrapper.instances |
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Object> |
PerThreadContext.PerContextThreadWrapper.instances |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ActiveDescriptor<?>> |
ImmediateHelper.getImmediateServices() |
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) |
java.lang.Object |
InheritableThreadContext.InheritableContextThreadWrapper.get(ActiveDescriptor<?> d) |
java.lang.Object |
PerThreadContext.PerContextThreadWrapper.get(ActiveDescriptor<?> d) |
boolean |
InheritableThreadContext.InheritableContextThreadWrapper.has(ActiveDescriptor<?> d) |
boolean |
PerThreadContext.PerContextThreadWrapper.has(ActiveDescriptor<?> d) |
void |
InheritableThreadContext.InheritableContextThreadWrapper.put(ActiveDescriptor<?> d,
java.lang.Object v) |
void |
PerThreadContext.PerContextThreadWrapper.put(ActiveDescriptor<?> d,
java.lang.Object v) |
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 | Field and Description |
---|---|
private ActiveDescriptor<?> |
CurrentTaskFuture.DownAllTheWay.lastErrorDescriptor |
Modifier and Type | Field and Description |
---|---|
private java.util.HashSet<ActiveDescriptor<?>> |
CurrentTaskFuture.QueueRunner.alreadyTried |
private java.util.Map<ActiveDescriptor<?>,java.lang.Object> |
AsyncRunLevelContext.backingMap
The backing maps for this context.
|
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Long> |
AsyncRunLevelContext.creatingDescriptors
The set of services currently being created
|
private java.util.HashSet<ActiveDescriptor<?>> |
AsyncRunLevelContext.hardCancelledDescriptors
The set of descriptors that have been hard cancelled
|
private java.util.Map<ActiveDescriptor<?>,java.lang.RuntimeException> |
AsyncRunLevelContext.levelErrorMap |
private java.util.LinkedList<ActiveDescriptor<?>> |
AsyncRunLevelContext.orderedCreationList |
private java.util.List<ActiveDescriptor<?>> |
CurrentTaskFuture.DownAllTheWay.queue |
private java.util.List<ActiveDescriptor<?>> |
CurrentTaskFuture.HardCancelDownTimer.queue |
private java.util.List<ActiveDescriptor<?>> |
CurrentTaskFuture.DownQueueRunner.queue |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<ActiveDescriptor<?>> |
AsyncRunLevelContext.getOrderedListOfServicesAtLevel(int level) |
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 |
(package private) void |
AsyncRunLevelContext.hardCancelOne(ActiveDescriptor<?> descriptor)
No need to lock this, it is called with the lock already held
|
private boolean |
CurrentTaskFuture.QueueRunner.isWouldBlockRightNow(java.util.HashSet<ActiveDescriptor<?>> cycleChecker,
ActiveDescriptor<?> checkMe)
This method does a preliminary check of whether or not the descriptor (or any children) would cause
the thread to block.
|
private void |
AsyncRunLevelContext.validate(ActiveDescriptor<?> descriptor,
int currentLevel)
Verifies that the run level value of the
RunLevel annotated
service described by the given descriptor is valid for activation. |
(package private) boolean |
AsyncRunLevelContext.wouldBlockRightNow(ActiveDescriptor<?> desc) |
Modifier and Type | Method and Description |
---|---|
private boolean |
CurrentTaskFuture.QueueRunner.isWouldBlockRightNow(java.util.HashSet<ActiveDescriptor<?>> cycleChecker,
ActiveDescriptor<?> checkMe)
This method does a preliminary check of whether or not the descriptor (or any children) would cause
the thread to block.
|
Constructor and Description |
---|
DownQueueRunner(java.lang.Object queueLock,
java.util.List<ActiveDescriptor<?>> queue,
CurrentTaskFuture.DownAllTheWay parent,
ServiceLocator locator) |
HardCancelDownTimer(CurrentTaskFuture.DownAllTheWay parent,
java.util.List<ActiveDescriptor<?>> queue) |
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 | Field and Description |
---|---|
private ActiveDescriptor<T> |
AliasDescriptor.descriptor
The descriptor that this descriptor will alias.
|
private ActiveDescriptor<T> |
ContextualInput.descriptor |
private ActiveDescriptor<?> |
InjecteeImpl.injecteeDescriptor |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<ActiveDescriptor<?>,java.lang.Long> |
ImmediateContext.creating |
private java.util.HashMap<ActiveDescriptor<?>,HandleAndService> |
ImmediateContext.currentImmediateServices |
Modifier and Type | Method and Description |
---|---|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
java.lang.Object constant)
This method adds one existing object to the given service locator.
|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
java.lang.Object constant,
java.lang.String name,
java.lang.reflect.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 java.util.List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
boolean idempotent,
java.lang.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 java.util.List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
java.lang.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.
|
private java.util.List<ActiveDescriptor<?>> |
ImmediateContext.getImmediateServices() |
Modifier and Type | Method and Description |
---|---|
boolean |
ImmediateContext.containsKey(ActiveDescriptor<?> descriptor) |
void |
ImmediateContext.destroyOne(ActiveDescriptor<?> descriptor) |
private void |
ImmediateContext.destroyOne(ActiveDescriptor<?> descriptor,
java.util.List<ImmediateErrorHandler> errorHandlers)
Destroys a single descriptor
|
<U> U |
ImmediateContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
private static java.lang.String |
AliasDescriptor.getAliasMetadataValue(ActiveDescriptor<?> descriptor) |
void |
ImmediateErrorHandler.postConstructFailed(ActiveDescriptor<?> immediateService,
java.lang.Throwable exception)
This is called whenever an immediate service fails in its constructor or
postConstruct method.
|
void |
ImmediateErrorHandler.preDestroyFailed(ActiveDescriptor<?> immediateService,
java.lang.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,
java.lang.String contract,
java.lang.String name)
Construct an AliasDescriptor.
|
ContextualInput(ActiveDescriptor<T> descriptor,
ServiceHandle<?> root)
The inputs from the
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
method |
Constructor and Description |
---|
AliasFilter(java.util.List<ActiveDescriptor<?>> bases) |
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(java.lang.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 | Field and Description |
---|---|
private ActiveDescriptor<T> |
SystemDescriptor.activeDescriptor |
private ActiveDescriptor<?> |
ValidationInformationImpl.candidate |
private ActiveDescriptor<?> |
ErrorResults.descriptor |
private ActiveDescriptor<?> |
InstanceLifecycleEventImpl.descriptor |
private ActiveDescriptor<?> |
MethodInterceptorImpl.descriptor |
private ActiveDescriptor<?> |
FactoryCreator.factoryDescriptor |
private ActiveDescriptor<?> |
SystemInjecteeImpl.injecteeDescriptor |
private ActiveDescriptor<T> |
ServiceHandleImpl.root |
private ActiveDescriptor<?> |
ClazzCreator.selfDescriptor |
private ActiveDescriptor<?> |
MethodInterceptorHandler.underlyingDescriptor |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<ThreadSpecificObject<ActiveDescriptor<?>>,java.lang.Object> |
FactoryCreator.cycleFinder |
private java.util.List<ActiveDescriptor<?>> |
NarrowResults.goodResults |
private java.util.List<ActiveDescriptor<?>> |
NarrowResults.unnarrowedResults |
private java.util.List<ActiveDescriptor<?>> |
ImmediateResults.validatedImmediateResults |
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(java.lang.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() |
(package private) ActiveDescriptor<?> |
ErrorResults.getDescriptor() |
private ActiveDescriptor<?> |
SystemDescriptor.getFactoryDescriptor(java.lang.reflect.Method provideMethod,
java.lang.reflect.Type factoryProvidedType,
ServiceLocatorImpl locator,
Collector collector) |
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
|
(package private) ActiveDescriptor<?> |
ClazzCreator.getUnderlyingDescriptor() |
private <T> ActiveDescriptor<T> |
ServiceLocatorImpl.internalGetDescriptor(Injectee onBehalfOf,
java.lang.reflect.Type contractOrImpl,
java.lang.String name,
Unqualified unqualified,
boolean isIterable,
java.lang.annotation.Annotation... qualifiers) |
private <T> ActiveDescriptor<T> |
ServiceLocatorImpl.internalGetDescriptor(Injectee onBehalfOf,
java.lang.reflect.Type contractOrImpl,
java.lang.String name,
Unqualified unqualified,
boolean isIterable,
boolean calledFromSecondChanceResolveMethod,
java.lang.annotation.Annotation... qualifiers) |
private ActiveDescriptor<?> |
ServiceLocatorImpl.internalGetInjecteeDescriptor(Injectee injectee,
boolean calledFromSecondChanceResolveMethod) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor,
Injectee injectee) |
(package private) ActiveDescriptor<?> |
NarrowResults.removeUnnarrowedResult() |
private ActiveDescriptor<?> |
ServiceLocatorImpl.secondChanceResolve(Injectee injectee) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ActiveDescriptor<?>> |
ServiceLocatorImpl.getDescriptors(Filter filter) |
(package private) java.util.List<ActiveDescriptor<?>> |
ImmediateResults.getImmediateResults() |
(package private) java.util.List<ActiveDescriptor<?>> |
NarrowResults.getResults() |
java.util.List<ActiveDescriptor<?>> |
PopulatorImpl.populate() |
java.util.List<ActiveDescriptor<?>> |
PopulatorImpl.populate(DescriptorFileFinder fileFinder,
PopulatorPostProcessor... postProcessors) |
private java.util.List<ActiveDescriptor<?>> |
ServiceLocatorImpl.protectedGetDescriptors(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) |
(package private) void |
NarrowResults.addError(ActiveDescriptor<?> fail,
Injectee injectee,
MultiException me) |
(package private) void |
NarrowResults.addGoodResult(ActiveDescriptor<?> result) |
(package private) void |
ImmediateResults.addValidatedResult(ActiveDescriptor<?> addMe) |
private static void |
DynamicConfigurationImpl.checkReifiedDescriptor(ActiveDescriptor<?> d) |
boolean |
PerLookupContext.containsKey(ActiveDescriptor<?> descriptor) |
boolean |
SingletonContext.containsKey(ActiveDescriptor<?> descriptor) |
static <T> AutoActiveDescriptor<T> |
Utilities.createAutoFactoryDescriptor(java.lang.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,
java.lang.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
|
private static boolean |
ServiceLocatorImpl.doTrace(ActiveDescriptor<?> desc) |
<T> T |
PerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
SingletonContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
ProxyUtilities.generateProxy(java.lang.Class<?> requestedClass,
ServiceLocatorImpl locator,
ActiveDescriptor<T> root,
ServiceHandleImpl<T> handle,
Injectee injectee) |
private static java.util.List<java.lang.String> |
ServiceLocatorImpl.getAllContracts(ActiveDescriptor<?> desc) |
(package private) static Utilities.Interceptors |
Utilities.getAllInterceptors(ServiceLocatorImpl impl,
ActiveDescriptor<?> descriptor,
java.lang.Class<?> clazz,
java.lang.reflect.Constructor<?> c) |
static java.util.List<SystemInjecteeImpl> |
Utilities.getConstructorInjectees(java.lang.reflect.Constructor<?> c,
ActiveDescriptor<?> injecteeDescriptor)
Returns all the injectees for a constructor
|
static java.lang.Class<?> |
Utilities.getFactoryAwareImplementationClass(ActiveDescriptor<?> descriptor)
This utility will return the proper implementation class, taking into account that the
descriptor may be a factory
|
static java.util.List<SystemInjecteeImpl> |
Utilities.getFieldInjectees(java.lang.Class<?> actualClass,
java.lang.reflect.Field f,
ActiveDescriptor<?> injecteeDescriptor)
Returns the injectees for a field
|
static java.lang.Class<? extends java.lang.annotation.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 java.util.List<SystemInjecteeImpl> |
Utilities.getMethodInjectees(java.lang.Class<?> actualClass,
java.lang.reflect.Method c,
ActiveDescriptor<?> injecteeDescriptor)
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) |
private <T> ServiceHandleImpl<T> |
ServiceLocatorImpl.getServiceHandleImpl(ActiveDescriptor<T> activeDescriptor,
Injectee injectee) |
(package private) void |
ClazzCreator.initialize(ActiveDescriptor<?> selfDescriptor,
Collector collector) |
(package private) void |
ClazzCreator.initialize(ActiveDescriptor<?> selfDescriptor,
java.lang.String analyzerName,
Collector collector) |
private <T> ServiceHandleImpl<T> |
ServiceLocatorImpl.internalGetServiceHandle(ActiveDescriptor<T> activeDescriptor,
java.lang.reflect.Type requestedType,
Injectee originalRequest) |
private static boolean |
Utilities.isProxiable(ActiveDescriptor<?> desc,
Injectee injectee)
This method determines whether or not the descriptor should be proxied.
|
(package private) void |
SystemInjecteeImpl.resetInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor) |
(package private) void |
AutoActiveDescriptor.resetSelfDescriptor(ActiveDescriptor<?> toMe) |
(package private) void |
ClazzCreator.resetSelfDescriptor(ActiveDescriptor<?> selfDescriptor)
This is done because sometimes when creating the creator we do not know
what the true system descriptor will be
|
static void |
Utilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor,
java.util.List<SystemInjecteeImpl> injectees,
Collector collector)
This method validates a list of injectees to ensure that any self injectees have
the proper set of requirements.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
NarrowResults.setUnnarrowedResults(java.util.List<ActiveDescriptor<?>> unnarrowed) |
Constructor and Description |
---|
ErrorResults(ActiveDescriptor<?> descriptor,
Injectee injectee,
MultiException me) |
FactoryCreator(ServiceLocator locator,
ActiveDescriptor<?> factoryDescriptor) |
InstanceLifecycleEventImpl(InstanceLifecycleEventType eventType,
java.lang.Object lifecycleObject,
ActiveDescriptor<?> descriptor) |
InstanceLifecycleEventImpl(InstanceLifecycleEventType eventType,
java.lang.Object lifecycleObject,
java.util.Map<Injectee,java.lang.Object> knownInjectees,
ActiveDescriptor<?> descriptor) |
MethodInterceptorHandler(ServiceLocatorImpl locator,
ActiveDescriptor<?> underlyingDescriptor,
java.util.Map<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> interceptorLists) |
MethodInterceptorImpl(ServiceLocatorImpl sli,
ActiveDescriptor<?> descriptor,
ServiceHandleImpl<?> root,
Injectee injectee) |
ServiceHandleImpl(ServiceLocatorImpl locator,
ActiveDescriptor<T> root,
Injectee injectee) |
SystemInjecteeImpl(java.lang.reflect.Type requiredType,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
int position,
java.lang.reflect.AnnotatedElement parent,
boolean isOptional,
boolean isSelf,
Unqualified unqualified,
ActiveDescriptor<?> injecteeDescriptor) |
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 |
---|---|
java.lang.Object |
HK2JmxSpecifier.getJmxObject(ActiveDescriptor<?> descriptor,
java.lang.Object instance)
Gets the Object that should be used either directly
or to be modelled.
|