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(java.lang.Class<T> contractOrImpl, java.lang.annotation.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(java.lang.Class<T> contractOrImpl, java.lang.String name, java.lang.annotation.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(java.lang.reflect.Type contractOrImpl, java.lang.annotation.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(java.lang.reflect.Type contractOrImpl, java.lang.String name, java.lang.annotation.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 java.util.List<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(java.lang.annotation.Annotation qualifier, java.lang.annotation.Annotation... qualifiers)
Gets a list ofServiceHandle
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 ofServiceHandle
that can be used to get and destroy services associated with descriptors that match the provided criteriajava.util.List<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)
Gets a list ofServiceHandle
that can be used to get and destroy services associated with descriptors that match the provided criteriajava.util.List<ServiceHandle<?>>
ServiceLocator. getAllServiceHandles(Filter searchCriteria)
Gets a list ofServiceHandle
whoseActiveDescriptor
s match the supplied filter.java.util.List<ServiceHandle<?>>
ServiceHandle. getSubHandles()
Returns a list of subordinate subhandles to this root handlejava.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)Methods in org.glassfish.hk2.api with parameters of type ServiceHandle Modifier and Type Method 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 ofInjectionResolver.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. -
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 java.lang.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 java.lang.Iterable<ServiceHandle<T>>
ChildIterableImpl. handleIterator()
Methods in org.glassfish.hk2.configuration.internal with parameters of type ServiceHandle Modifier and Type Method 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)
-
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 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.Method parameters in org.glassfish.hk2.extras.interception with type arguments of type ServiceHandle Modifier and Type Method 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. -
Uses of ServiceHandle in org.glassfish.hk2.extras.interception.internal
Methods in org.glassfish.hk2.extras.interception.internal that return types with arguments of type ServiceHandle Modifier and Type Method 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)
Method parameters in org.glassfish.hk2.extras.interception.internal with type arguments of type ServiceHandle Modifier and Type Method 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)
-
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
Fields in org.glassfish.hk2.internal declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>
HandleAndService. handle
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
ActiveDescriptorBuilderImpl.BuiltActiveDescriptor. create(ServiceHandle<?> root)
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, java.lang.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 java.util.List<ServiceHandle<?>>
Sorter. sort(java.util.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 java.util.List<ServiceHandle<?>>
Sorter. sort(java.util.List<ServiceHandle<?>> descriptors)
Sort the given list of run level service handles. -
Uses of ServiceHandle in org.glassfish.hk2.runlevel.internal
Fields in org.glassfish.hk2.runlevel.internal declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>
CurrentTaskFuture.QueueRunner. wouldHaveBlocked
Fields in org.glassfish.hk2.runlevel.internal with type parameters of type ServiceHandle Modifier and Type Field 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.DownAllTheWay. listeners
private java.util.List<ServiceHandle<RunLevelListener>>
CurrentTaskFuture.UpAllTheWay. listeners
private java.util.List<ServiceHandle<RunLevelListener>>
CurrentTaskFuture.UpOneLevel. 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
Methods in org.glassfish.hk2.runlevel.internal that return types with arguments of type ServiceHandle Modifier and Type Method Description private java.util.List<ServiceHandle<?>>
CurrentTaskFuture.UpOneLevel. applySorters(java.util.List<ServiceHandle<?>> jobs)
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 wrapperprivate 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)
Method parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandle Modifier and Type Method 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 parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandle Constructor 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)
UpOneLevel(int paramUpToThisLevel, CurrentTaskFuture.UpAllTheWay master, CurrentTaskFuture currentTaskFuture, java.util.List<ServiceHandle<RunLevelListener>> listeners, java.util.List<ServiceHandle<Sorter>> sorters, int maxThreads, long cancelTimeout)
-
Uses of ServiceHandle in org.glassfish.hk2.utilities
Fields in org.glassfish.hk2.utilities declared as ServiceHandle Modifier and Type Field Description private ServiceHandle<?>
ContextualInput. root
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 java.lang.String
ServiceLocatorUtilities. getOneMetadataField(ServiceHandle<?> h, java.lang.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.Fields in org.jvnet.hk2.internal with type parameters of type ServiceHandle Modifier and Type Field Description private java.util.LinkedList<ServiceHandle<?>>
ServiceLocatorImpl. configListeners
private java.util.List<ServiceHandle<U>>
IterableProviderImpl.HandleIterable. handles
private java.util.LinkedList<ServiceHandle<U>>
IterableProviderImpl.MyHandleIterator. handles
private java.util.LinkedList<ServiceHandle<U>>
IterableProviderImpl.MyIterator. handles
Methods in org.jvnet.hk2.internal that return ServiceHandle Modifier and Type Method Description private ServiceHandle<Factory<T>>
FactoryCreator. getFactoryHandle()
ServiceHandle<T>
IterableProviderImpl. getHandle()
<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)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor)
<T> ServiceHandle<T>
ServiceLocatorImpl. getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
(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()
Methods in org.jvnet.hk2.internal that return types with arguments of type ServiceHandle Modifier and Type Method 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(java.lang.reflect.Type contractOrImpl, java.lang.annotation.Annotation... qualifiers)
java.util.List<ServiceHandle<?>>
ServiceLocatorImpl. getAllServiceHandles(Filter searchCriteria)
(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)
Methods in org.jvnet.hk2.internal with parameters of type ServiceHandle Modifier and Type Method 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)
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, java.lang.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)
(package private) T
ServiceHandleImpl. getService(ServiceHandle<T> handle)
<T> T
ServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
Deprecated.<T> T
ServiceLocatorImpl. getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee originalRequest)
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 methodprivate void
ClazzCreator. resolve(java.util.Map<SystemInjecteeImpl,java.lang.Object> addToMe, InjectionResolver<?> resolver, SystemInjecteeImpl injectee, ServiceHandle<?> root, Collector errorCollection)
java.lang.Object
ThreeThirtyResolver. resolve(Injectee injectee, ServiceHandle<?> root)
private java.util.Map<SystemInjecteeImpl,java.lang.Object>
ClazzCreator. resolveAllDependencies(ServiceHandle<?> root)
Method parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandle Modifier and Type Method Description private void
ServiceLocatorImpl. callAllConfigurationListeners(java.util.List<ServiceHandle<?>> allListeners)
Constructor parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandle Constructor Description HandleIterable(java.util.List<ServiceHandle<U>> handles)
MyHandleIterator(java.util.List<ServiceHandle<U>> handles)
MyIterator(java.util.List<ServiceHandle<U>> handles)
-