Modifier and Type | Method and Description |
---|---|
ServiceHandle<T> |
IterableProvider.getHandle()
Rather than getting the service directly with get (in which
case the returned service cannot be disposed of) this method
will instead return a service handle for the current best service.
|
<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 . |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(java.lang.Class<T> contractOrImpl,
java.lang.annotation.Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(java.lang.Class<T> contractOrImpl,
java.lang.String name,
java.lang.annotation.Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(java.lang.reflect.Type contractOrImpl,
java.lang.annotation.Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(java.lang.reflect.Type contractOrImpl,
java.lang.String name,
java.lang.annotation.Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(java.lang.annotation.Annotation qualifier,
java.lang.annotation.Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
<T> java.util.List<ServiceHandle<T>> |
ServiceLocator.getAllServiceHandles(java.lang.Class<T> contractOrImpl,
java.lang.annotation.Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
java.util.List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Filter searchCriteria)
Gets a list of
ServiceHandle whose ActiveDescriptor s match
the supplied filter. |
java.util.List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(java.lang.reflect.Type contractOrImpl,
java.lang.annotation.Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
java.util.List<ServiceHandle<?>> |
ServiceHandle.getSubHandles()
Returns a list of subordinate subhandles
to this root handle
|
java.lang.Iterable<ServiceHandle<T>> |
IterableProvider.handleIterator()
This version of iterator returns an iterator of ServiceHandles rather
than returning the services (which then have no way to be properly
destroyed)
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ServiceLocator.assistedInject(java.lang.Object injectMe,
java.lang.reflect.Method method,
ServiceHandle<?> root,
MethodParameter... params)
This will invoke the given method on the given object.
|
T |
ActiveDescriptor.create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
<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) . |
java.lang.Object |
InjectionResolver.resolve(Injectee injectee,
ServiceHandle<?> root)
This method will return the object that should be injected into the given
injection point.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ServiceHandle<T>> |
ChildIterable.handleIterator()
Returns an iterator of the children's Service
Handle, rather than their services
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ServiceHandle<T>> |
ChildIterableImpl.handleIterator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
DelegatingNamedActiveDescriptor.create(ServiceHandle<?> root) |
<U> U |
ConfiguredByContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
private <U> U |
ConfiguredByContext.internalFindOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
java.lang.Object |
ChildInjectResolverImpl.resolve(Injectee injectee,
ServiceHandle<?> root) |
java.lang.Object |
ConfiguredByInjectionResolver.resolve(Injectee injectee,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
T |
CrossOverDescriptor.create(ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
InterceptorOrderingService.modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor,
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
InterceptorOrderingService.modifyMethodInterceptors(java.lang.reflect.Method method,
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)
This method is called for each method that may be intercepted by the default
interception service.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
InterceptorOrderingService.modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor,
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
InterceptorOrderingService.modifyMethodInterceptors(java.lang.reflect.Method method,
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)
This method is called for each method that may be intercepted by the default
interception service.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
DefaultInterceptionService.orderConstructors(java.lang.reflect.Constructor<?> constructor,
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current) |
private java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
DefaultInterceptionService.orderMethods(java.lang.reflect.Method method,
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> current) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
DefaultInterceptionService.orderConstructors(java.lang.reflect.Constructor<?> constructor,
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current) |
private java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
DefaultInterceptionService.orderMethods(java.lang.reflect.Method method,
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> current) |
Modifier and Type | Method and Description |
---|---|
<U> U |
OperationContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
OperationHandle<T> |
OperationDescriptor.create(ServiceHandle<?> root) |
Modifier and Type | Field and Description |
---|---|
private ServiceHandle<?> |
HandleAndService.handle |
Modifier and Type | Method and Description |
---|---|
ServiceHandle<?> |
HandleAndService.getHandle() |
Modifier and Type | Method and Description |
---|---|
T |
ConstantActiveDescriptor.create(ServiceHandle<?> root) |
T |
ActiveDescriptorBuilderImpl.BuiltActiveDescriptor.create(ServiceHandle<?> root) |
<U> U |
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
<U> U |
InheritableThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Constructor and Description |
---|
HandleAndService(ServiceHandle<?> handle,
java.lang.Object service) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<?>> |
Sorter.sort(java.util.List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles.
|
Modifier and Type | Method and Description |
---|---|
<U> U |
RunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<?>> |
Sorter.sort(java.util.List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles.
|
Modifier and Type | Field and Description |
---|---|
private ServiceHandle<?> |
CurrentTaskFuture.QueueRunner.wouldHaveBlocked |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ServiceHandle<RunLevelListener>> |
CurrentTaskFuture.allListenerHandles |
private java.util.List<ServiceHandle<ProgressStartedListener>> |
CurrentTaskFuture.allProgressStartedHandles |
private java.util.List<ServiceHandle<Sorter>> |
CurrentTaskFuture.allSorterHandles |
private java.util.List<ServiceHandle<RunLevelListener>> |
CurrentTaskFuture.UpAllTheWay.listeners |
private java.util.List<ServiceHandle<RunLevelListener>> |
CurrentTaskFuture.UpOneLevel.listeners |
private java.util.List<ServiceHandle<RunLevelListener>> |
CurrentTaskFuture.DownAllTheWay.listeners |
private java.util.HashSet<ServiceHandle<?>> |
CurrentTaskFuture.UpOneLevel.outstandingHandles |
private java.util.List<ServiceHandle<?>> |
CurrentTaskFuture.QueueRunner.queue |
private java.util.List<ServiceHandle<Sorter>> |
CurrentTaskFuture.UpAllTheWay.sorters |
private java.util.List<ServiceHandle<Sorter>> |
CurrentTaskFuture.UpOneLevel.sorters |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ServiceHandle<?>> |
CurrentTaskFuture.UpOneLevel.applySorters(java.util.List<ServiceHandle<?>> jobs) |
Modifier and Type | Method and Description |
---|---|
<U> U |
AsyncRunLevelContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root)
This is from the
Context API, called by the wrapper |
private void |
CurrentTaskFuture.UpOneLevel.jobFinished(ServiceHandle<?> handle) |
private void |
CurrentTaskFuture.UpOneLevel.jobRunning(ServiceHandle<?> handle) |
private void |
CurrentTaskFuture.QueueRunner.oneJob(ServiceHandle<?> fService,
boolean block) |
private static java.lang.String |
AsyncRunLevelContext.oneLineRoot(ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ServiceHandle<?>> |
CurrentTaskFuture.UpOneLevel.applySorters(java.util.List<ServiceHandle<?>> jobs) |
private static void |
CurrentTaskFuture.invokeOnCancelled(CurrentTaskFuture job,
int levelAchieved,
java.util.List<ServiceHandle<RunLevelListener>> listeners) |
private static ErrorInformation |
CurrentTaskFuture.invokeOnError(CurrentTaskFuture job,
java.lang.Throwable th,
ErrorInformation.ErrorAction action,
java.util.List<ServiceHandle<RunLevelListener>> listeners,
Descriptor descriptor) |
private void |
CurrentTaskFuture.invokeOnProgress(ChangeableRunLevelFuture job,
int level,
java.util.List<ServiceHandle<RunLevelListener>> listeners) |
private void |
CurrentTaskFuture.invokeOnProgressStarted(ChangeableRunLevelFuture job,
int level,
java.util.List<ServiceHandle<ProgressStartedListener>> listeners) |
Constructor and Description |
---|
DownAllTheWay(int goingTo,
CurrentTaskFuture future,
java.util.List<ServiceHandle<RunLevelListener>> listeners) |
QueueRunner(ServiceLocator locator,
AsyncRunLevelContext asyncContext,
java.lang.Object queueLock,
java.util.List<ServiceHandle<?>> queue,
CurrentTaskFuture.UpOneLevel parent,
java.lang.Object parentLock,
int maxThreads) |
UpAllTheWay(int goingTo,
CurrentTaskFuture future,
java.util.List<ServiceHandle<RunLevelListener>> listeners,
java.util.List<ServiceHandle<Sorter>> sorters,
int maxThreads,
boolean useThreads,
long cancelTimeout) |
UpAllTheWay(int goingTo,
CurrentTaskFuture future,
java.util.List<ServiceHandle<RunLevelListener>> listeners,
java.util.List<ServiceHandle<Sorter>> sorters,
int maxThreads,
boolean useThreads,
long cancelTimeout) |
UpOneLevel(int paramUpToThisLevel,
CurrentTaskFuture.UpAllTheWay master,
CurrentTaskFuture currentTaskFuture,
java.util.List<ServiceHandle<RunLevelListener>> listeners,
java.util.List<ServiceHandle<Sorter>> sorters,
int maxThreads,
long cancelTimeout) |
UpOneLevel(int paramUpToThisLevel,
CurrentTaskFuture.UpAllTheWay master,
CurrentTaskFuture currentTaskFuture,
java.util.List<ServiceHandle<RunLevelListener>> listeners,
java.util.List<ServiceHandle<Sorter>> sorters,
int maxThreads,
long cancelTimeout) |
Modifier and Type | Field and Description |
---|---|
private ServiceHandle<?> |
ContextualInput.root |
Modifier and Type | Method and Description |
---|---|
static <T> ServiceHandle<T> |
BuilderHelper.createConstantServiceHandle(T obj)
Creates a ServiceHandle that will always return the given object from
the
getService() method. |
ServiceHandle<?> |
ContextualInput.getRoot()
Returns the
ServiceHandle root associated with this
contextual creation |
Modifier and Type | Method and Description |
---|---|
T |
AliasDescriptor.create(ServiceHandle<?> root) |
<U> U |
ImmediateContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
static java.lang.String |
ServiceLocatorUtilities.getOneMetadataField(ServiceHandle<?> h,
java.lang.String field)
Gets one value from a metadata field from the given service handle
|
Constructor and Description |
---|
ContextualInput(ActiveDescriptor<T> descriptor,
ServiceHandle<?> root)
The inputs from the
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
method |
Modifier and Type | Class and Description |
---|---|
class |
ServiceHandleImpl<T>
This handle does the underlying work of getting the service.
|
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<ServiceHandle<?>> |
ServiceLocatorImpl.configListeners |
private java.util.LinkedList<ServiceHandle<U>> |
IterableProviderImpl.MyIterator.handles |
private java.util.List<ServiceHandle<U>> |
IterableProviderImpl.HandleIterable.handles |
private java.util.LinkedList<ServiceHandle<U>> |
IterableProviderImpl.MyHandleIterator.handles |
Modifier and Type | Method and Description |
---|---|
private ServiceHandle<Factory<T>> |
FactoryCreator.getFactoryHandle() |
ServiceHandle<T> |
IterableProviderImpl.getHandle() |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(java.lang.Class<T> contractOrImpl,
java.lang.annotation.Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(java.lang.Class<T> contractOrImpl,
java.lang.String name,
java.lang.annotation.Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(java.lang.reflect.Type contractOrImpl,
java.lang.annotation.Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(java.lang.reflect.Type contractOrImpl,
java.lang.String name,
java.lang.annotation.Annotation... qualifiers) |
(package private) <T> ServiceHandle<T> |
ServiceLocatorImpl.getUnqualifiedServiceHandle(java.lang.reflect.Type contractOrImpl,
Unqualified unqualified,
boolean isIterable,
java.lang.annotation.Annotation... qualifiers) |
ServiceHandle<U> |
IterableProviderImpl.MyHandleIterator.next() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(java.lang.annotation.Annotation qualifier,
java.lang.annotation.Annotation... qualifiers) |
<T> java.util.List<ServiceHandle<T>> |
ServiceLocatorImpl.getAllServiceHandles(java.lang.Class<T> contractOrImpl,
java.lang.annotation.Annotation... qualifiers) |
java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Filter searchCriteria) |
java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(java.lang.reflect.Type contractOrImpl,
java.lang.annotation.Annotation... qualifiers) |
(package private) java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllUnqualifiedServiceHandles(java.lang.reflect.Type contractOrImpl,
Unqualified unqualified,
boolean isIterable,
java.lang.annotation.Annotation... qualifiers) |
java.util.List<ServiceHandle<?>> |
ServiceHandleImpl.getSubHandles() |
java.lang.Iterable<ServiceHandle<T>> |
IterableProviderImpl.handleIterator() |
java.util.Iterator<ServiceHandle<U>> |
IterableProviderImpl.HandleIterable.iterator() |
private java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.protectedGetAllServiceHandles(java.lang.reflect.Type contractOrImpl,
java.lang.annotation.Annotation... qualifiers) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ServiceLocatorImpl.assistedInject(java.lang.Object injectMe,
java.lang.reflect.Method method,
ServiceHandle<?> root,
MethodParameter... params) |
int |
ServiceHandleComparator.compare(ServiceHandle<?> o1,
ServiceHandle<?> o2) |
int |
ServiceHandleComparator.compare(ServiceHandle<?> o1,
ServiceHandle<?> o2) |
T |
ConstantActiveDescriptor.create(ServiceHandle<?> root) |
T |
AutoActiveDescriptor.create(ServiceHandle<?> root) |
T |
SystemDescriptor.create(ServiceHandle<?> root) |
T |
Creator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower)
Creates an instance of the given type
|
T |
FactoryCreator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower) |
T |
ClazzCreator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower) |
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)
|
<T> T |
SingletonContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
PerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
Deprecated.
|
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root,
Injectee originalRequest) |
(package private) T |
ServiceHandleImpl.getService(ServiceHandle<T> handle) |
static java.lang.Object |
Utilities.justAssistedInject(java.lang.Object injectMe,
java.lang.reflect.Method method,
ServiceLocatorImpl locator,
ServiceHandle<?> root,
MethodParameter... givenValues)
Just injects this one method
|
java.lang.Object |
ThreeThirtyResolver.resolve(Injectee injectee,
ServiceHandle<?> root) |
private void |
ClazzCreator.resolve(java.util.Map<SystemInjecteeImpl,java.lang.Object> addToMe,
InjectionResolver<?> resolver,
SystemInjecteeImpl injectee,
ServiceHandle<?> root,
Collector errorCollection) |
private java.util.Map<SystemInjecteeImpl,java.lang.Object> |
ClazzCreator.resolveAllDependencies(ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
private void |
ServiceLocatorImpl.callAllConfigurationListeners(java.util.List<ServiceHandle<?>> allListeners) |
Constructor and Description |
---|
HandleIterable(java.util.List<ServiceHandle<U>> handles) |
MyHandleIterator(java.util.List<ServiceHandle<U>> handles) |
MyIterator(java.util.List<ServiceHandle<U>> handles) |