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(Class<T> contractOrImpl,
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(Class<T> contractOrImpl,
String name,
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(Type contractOrImpl,
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(Type contractOrImpl,
String name,
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 |
---|---|
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Annotation qualifier,
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> List<ServiceHandle<T>> |
ServiceLocator.getAllServiceHandles(Class<T> contractOrImpl,
Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Filter searchCriteria)
Gets a list of
ServiceHandle whose ActiveDescriptor s match
the supplied filter. |
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Type contractOrImpl,
Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
List<ServiceHandle<?>> |
ServiceHandle.getSubHandles()
Returns a list of subordinate subhandles
to this root handle
|
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 |
---|---|
Object |
ServiceLocator.assistedInject(Object injectMe,
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) . |
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 |
---|---|
Iterable<ServiceHandle<T>> |
ChildIterable.handleIterator()
Returns an iterator of the children's Service
Handle, rather than their services
|
Modifier and Type | Method and Description |
---|---|
Iterable<ServiceHandle<T>> |
ChildIterableImpl.handleIterator() |
Modifier and Type | Method and Description |
---|---|
Object |
DelegatingNamedActiveDescriptor.create(ServiceHandle<?> root) |
<U> U |
ConfiguredByContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Object |
ChildInjectResolverImpl.resolve(Injectee injectee,
ServiceHandle<?> root) |
Object |
ConfiguredByInjectionResolver.resolve(Injectee injectee,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
T |
CrossOverDescriptor.create(ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
InterceptorOrderingService.modifyConstructorInterceptors(Constructor<?> constructor,
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
InterceptorOrderingService.modifyMethodInterceptors(Method method,
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 |
---|---|
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
InterceptorOrderingService.modifyConstructorInterceptors(Constructor<?> constructor,
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
InterceptorOrderingService.modifyMethodInterceptors(Method method,
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 |
---|---|
<U> U |
OperationContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
OperationHandle<T> |
OperationDescriptor.create(ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
ServiceHandle<?> |
HandleAndService.getHandle() |
Modifier and Type | Method and Description |
---|---|
T |
ConstantActiveDescriptor.create(ServiceHandle<?> root) |
<U> U |
InheritableThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
<U> U |
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Constructor and Description |
---|
HandleAndService(ServiceHandle<?> handle,
Object service) |
Modifier and Type | Method and Description |
---|---|
List<ServiceHandle<?>> |
Sorter.sort(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 |
---|---|
List<ServiceHandle<?>> |
Sorter.sort(List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles.
|
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 |
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 String |
ServiceLocatorUtilities.getOneMetadataField(ServiceHandle<?> h,
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 | Method and Description |
---|---|
T |
GuiceServiceHk2Bean.create(ServiceHandle<?> root) |
<U> U |
GuiceScopeContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Modifier and Type | Class and Description |
---|---|
class |
ServiceHandleImpl<T>
This handle does the underlying work of getting the service.
|
Modifier and Type | Method and Description |
---|---|
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(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Class<T> contractOrImpl,
String name,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Type contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Type contractOrImpl,
String name,
Annotation... qualifiers) |
Modifier and Type | Method and Description |
---|---|
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Annotation qualifier,
Annotation... qualifiers) |
<T> List<ServiceHandle<T>> |
ServiceLocatorImpl.getAllServiceHandles(Class<T> contractOrImpl,
Annotation... qualifiers) |
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Filter searchCriteria) |
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Type contractOrImpl,
Annotation... qualifiers) |
List<ServiceHandle<?>> |
ServiceHandleImpl.getSubHandles() |
Iterable<ServiceHandle<T>> |
IterableProviderImpl.handleIterator() |
Modifier and Type | Method and Description |
---|---|
Object |
ServiceLocatorImpl.assistedInject(Object injectMe,
Method method,
ServiceHandle<?> root,
MethodParameter... params) |
int |
ServiceHandleComparator.compare(ServiceHandle<?> o1,
ServiceHandle<?> o2) |
int |
ServiceHandleComparator.compare(ServiceHandle<?> o1,
ServiceHandle<?> o2) |
T |
AutoActiveDescriptor.create(ServiceHandle<?> root) |
T |
ConstantActiveDescriptor.create(ServiceHandle<?> root) |
T |
SystemDescriptor.create(ServiceHandle<?> root) |
T |
ClazzCreator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower) |
T |
Creator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower)
Creates an instance of the given type
|
T |
FactoryCreator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower) |
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)
|
<T> T |
PerLookupContext.findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
<T> T |
SingletonContext.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) |
static Object |
Utilities.justAssistedInject(Object injectMe,
Method method,
ServiceLocatorImpl locator,
ServiceHandle<?> root,
MethodParameter... givenValues)
Just injects this one method
|
Object |
ThreeThirtyResolver.resolve(Injectee injectee,
ServiceHandle<?> root) |
Modifier and Type | Method and Description |
---|---|
T |
SpringServiceHK2Bean.create(ServiceHandle<?> root) |
<U> U |
SpringScopeContext.findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root) |
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.