Uses of Interface
org.glassfish.hk2.api.ServiceHandle
-
-
Uses of ServiceHandle in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return ServiceHandle Modifier and Type Method 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(Class<T> contractOrImpl, Annotation... qualifiers)
Gets aServiceHandle
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 aServiceHandle
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 aServiceHandle
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 aServiceHandle
that can be used to get and destroy the service that best matches the given criteria<T> ServiceHandle<T>
ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets aServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
.<T> ServiceHandle<T>
ServiceLocator. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
Gets aServiceHandle
that can be used to get and destroy the service described by theActiveDescriptor
.Methods in org.glassfish.hk2.api that return types with arguments of type ServiceHandle Modifier and Type Method Description List<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(Annotation qualifier, Annotation... qualifiers)
Gets a list ofServiceHandle
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 ofServiceHandle
that can be used to get and destroy services associated with descriptors that match the provided criteriaList<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(Type contractOrImpl, Annotation... qualifiers)
Gets a list ofServiceHandle
that can be used to get and destroy services associated with descriptors that match the provided criteriaList<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(Filter searchCriteria)
Gets a list ofServiceHandle
whoseActiveDescriptor
s match the supplied filter.List<ServiceHandle<?>>
ServiceHandle. getSubHandles()
Returns a list of subordinate subhandles to this root handleIterable<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)Methods in org.glassfish.hk2.api with parameters of type ServiceHandle Modifier and Type Method 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 ofInjectionResolver.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. -
Uses of ServiceHandle in org.glassfish.hk2.configuration.api
Methods in org.glassfish.hk2.configuration.api that return types with arguments of type ServiceHandle Modifier and Type Method Description Iterable<ServiceHandle<T>>
ChildIterable. handleIterator()
Returns an iterator of the children's Service Handle, rather than their services -
Uses of ServiceHandle in org.glassfish.hk2.configuration.internal
Methods in org.glassfish.hk2.configuration.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description Iterable<ServiceHandle<T>>
ChildIterableImpl. handleIterator()
Methods in org.glassfish.hk2.configuration.internal with parameters of type ServiceHandle Modifier and Type Method 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)
-
Uses of ServiceHandle in org.glassfish.hk2.extras.hk2bridge.internal
Methods in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ServiceHandle Modifier and Type Method Description T
CrossOverDescriptor. create(ServiceHandle<?> root)
-
Uses of ServiceHandle in org.glassfish.hk2.extras.interception
Methods in org.glassfish.hk2.extras.interception that return types with arguments of type ServiceHandle Modifier and Type Method 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.Method parameters in org.glassfish.hk2.extras.interception with type arguments of type ServiceHandle Modifier and Type Method 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. -
Uses of ServiceHandle in org.glassfish.hk2.extras.operation
Methods in org.glassfish.hk2.extras.operation with parameters of type ServiceHandle Modifier and Type Method Description <U> U
OperationContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
-
Uses of ServiceHandle in org.glassfish.hk2.extras.operation.internal
Methods in org.glassfish.hk2.extras.operation.internal with parameters of type ServiceHandle Modifier and Type Method Description OperationHandle<T>
OperationDescriptor. create(ServiceHandle<?> root)
-
Uses of ServiceHandle in org.glassfish.hk2.internal
Methods in org.glassfish.hk2.internal that return ServiceHandle Modifier and Type Method Description ServiceHandle<?>
HandleAndService. getHandle()
Methods in org.glassfish.hk2.internal with parameters of type ServiceHandle Modifier and Type Method Description T
ConstantActiveDescriptor. create(ServiceHandle<?> root)
<U> U
InheritableThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
<U> U
PerThreadContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
Constructors in org.glassfish.hk2.internal with parameters of type ServiceHandle Constructor Description HandleAndService(ServiceHandle<?> handle, Object service)
-
Uses of ServiceHandle in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel that return types with arguments of type ServiceHandle Modifier and Type Method Description List<ServiceHandle<?>>
Sorter. sort(List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles.Methods in org.glassfish.hk2.runlevel with parameters of type ServiceHandle Modifier and Type Method Description <U> U
RunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
Method parameters in org.glassfish.hk2.runlevel with type arguments of type ServiceHandle Modifier and Type Method Description List<ServiceHandle<?>>
Sorter. sort(List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles. -
Uses of ServiceHandle in org.glassfish.hk2.runlevel.internal
Methods in org.glassfish.hk2.runlevel.internal with parameters of type ServiceHandle Modifier and Type Method Description <U> U
AsyncRunLevelContext. findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
This is from theContext
API, called by the wrapper -
Uses of ServiceHandle in org.glassfish.hk2.utilities
Methods in org.glassfish.hk2.utilities that return ServiceHandle Modifier and Type Method Description static <T> ServiceHandle<T>
BuilderHelper. createConstantServiceHandle(T obj)
Creates a ServiceHandle that will always return the given object from thegetService()
method.ServiceHandle<?>
ContextualInput. getRoot()
Returns theServiceHandle
root associated with this contextual creationMethods in org.glassfish.hk2.utilities with parameters of type ServiceHandle Modifier and Type Method 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 handleConstructors in org.glassfish.hk2.utilities with parameters of type ServiceHandle Constructor Description ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root)
The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)
method -
Uses of ServiceHandle in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement ServiceHandle Modifier and Type Class Description class
ServiceHandleImpl<T>
This handle does the underlying work of getting the service.Methods in org.jvnet.hk2.internal that return ServiceHandle Modifier and Type Method Description ServiceHandle<T>
IterableProviderImpl. getHandle()
<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)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
Methods in org.jvnet.hk2.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description List<ServiceHandle<?>>
ServiceLocatorImpl. getAllServiceHandles(Annotation qualifier, Annotation... qualifiers)
<T> List<ServiceHandle<T>>
ServiceLocatorImpl. getAllServiceHandles(Class<T> contractOrImpl, Annotation... qualifiers)
List<ServiceHandle<?>>
ServiceLocatorImpl. getAllServiceHandles(Type contractOrImpl, Annotation... qualifiers)
List<ServiceHandle<?>>
ServiceLocatorImpl. getAllServiceHandles(Filter searchCriteria)
List<ServiceHandle<?>>
ServiceHandleImpl. getSubHandles()
Iterable<ServiceHandle<T>>
IterableProviderImpl. handleIterator()
Methods in org.jvnet.hk2.internal with parameters of type ServiceHandle Modifier and Type Method Description Object
ServiceLocatorImpl. assistedInject(Object injectMe, Method method, ServiceHandle<?> root, MethodParameter... params)
int
ServiceHandleComparator. compare(ServiceHandle<?> o1, ServiceHandle<?> o2)
T
AutoActiveDescriptor. create(ServiceHandle<?> root)
T
ClazzCreator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)
T
ConstantActiveDescriptor. create(ServiceHandle<?> root)
T
Creator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)
Creates an instance of the given typeT
FactoryCreator. create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)
T
SystemDescriptor. create(ServiceHandle<?> root)
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 methodObject
ThreeThirtyResolver. resolve(Injectee injectee, ServiceHandle<?> root)
-