Uses of Interface
org.glassfish.hk2.api.ServiceHandle
Packages that use ServiceHandle
Package
Description
-
Uses of ServiceHandle in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return ServiceHandleModifier and TypeMethodDescriptionIterableProvider.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 ServiceHandleModifier and TypeMethodDescriptionList
<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 handleIterableProvider.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 ServiceHandleModifier and TypeMethodDescriptionServiceLocator.assistedInject
(Object injectMe, Method method, ServiceHandle<?> root, MethodParameter... params) This will invoke the given method on the given object.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) Deprecated.<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)
.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 ServiceHandleModifier and TypeMethodDescriptionChildIterable.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 ServiceHandleMethods in org.glassfish.hk2.configuration.internal with parameters of type ServiceHandleModifier and TypeMethodDescriptionDelegatingNamedActiveDescriptor.create
(ServiceHandle<?> root) <U> U
ConfiguredByContext.findOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) private <U> U
ConfiguredByContext.internalFindOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) ChildInjectResolverImpl.resolve
(Injectee injectee, ServiceHandle<?> root) 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 -
Uses of ServiceHandle in org.glassfish.hk2.extras.interception
Methods in org.glassfish.hk2.extras.interception that return types with arguments of type ServiceHandleModifier and TypeMethodDescriptionList
<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 ServiceHandleModifier and TypeMethodDescriptionList
<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.interception.internal
Methods in org.glassfish.hk2.extras.interception.internal that return types with arguments of type ServiceHandleModifier and TypeMethodDescriptionprivate List
<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> DefaultInterceptionService.orderConstructors
(Constructor<?> constructor, List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current) private List
<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> DefaultInterceptionService.orderMethods
(Method method, List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> current) Method parameters in org.glassfish.hk2.extras.interception.internal with type arguments of type ServiceHandleModifier and TypeMethodDescriptionprivate List
<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> DefaultInterceptionService.orderConstructors
(Constructor<?> constructor, List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> current) private List
<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> DefaultInterceptionService.orderMethods
(Method method, 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 ServiceHandleModifier and TypeMethodDescription<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 -
Uses of ServiceHandle in org.glassfish.hk2.internal
Fields in org.glassfish.hk2.internal declared as ServiceHandleMethods in org.glassfish.hk2.internal that return ServiceHandleMethods in org.glassfish.hk2.internal with parameters of type ServiceHandleModifier and TypeMethodDescriptionActiveDescriptorBuilderImpl.BuiltActiveDescriptor.create
(ServiceHandle<?> root) 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 -
Uses of ServiceHandle in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel that return types with arguments of type ServiceHandleModifier and TypeMethodDescriptionList
<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 ServiceHandleModifier and TypeMethodDescription<U> U
RunLevelContext.findOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) Method parameters in org.glassfish.hk2.runlevel with type arguments of type ServiceHandleModifier and TypeMethodDescriptionList
<ServiceHandle<?>> Sorter.sort
(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 ServiceHandleModifier and TypeFieldDescriptionprivate ServiceHandle
<?> CurrentTaskFuture.QueueRunner.wouldHaveBlocked
Fields in org.glassfish.hk2.runlevel.internal with type parameters of type ServiceHandleModifier and TypeFieldDescriptionprivate final List
<ServiceHandle<RunLevelListener>> CurrentTaskFuture.allListenerHandles
private final List
<ServiceHandle<ProgressStartedListener>> CurrentTaskFuture.allProgressStartedHandles
private final List
<ServiceHandle<Sorter>> CurrentTaskFuture.allSorterHandles
private final List
<ServiceHandle<RunLevelListener>> CurrentTaskFuture.DownAllTheWay.listeners
private final List
<ServiceHandle<RunLevelListener>> CurrentTaskFuture.UpAllTheWay.listeners
private final List
<ServiceHandle<RunLevelListener>> CurrentTaskFuture.UpOneLevel.listeners
private final HashSet
<ServiceHandle<?>> CurrentTaskFuture.UpOneLevel.outstandingHandles
private final List
<ServiceHandle<?>> CurrentTaskFuture.QueueRunner.queue
private final List
<ServiceHandle<Sorter>> CurrentTaskFuture.UpAllTheWay.sorters
private final List
<ServiceHandle<Sorter>> CurrentTaskFuture.UpOneLevel.sorters
Methods in org.glassfish.hk2.runlevel.internal that return types with arguments of type ServiceHandleModifier and TypeMethodDescriptionprivate List
<ServiceHandle<?>> CurrentTaskFuture.UpOneLevel.applySorters
(List<ServiceHandle<?>> jobs) Methods in org.glassfish.hk2.runlevel.internal with parameters of type ServiceHandleModifier and TypeMethodDescription<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 String
AsyncRunLevelContext.oneLineRoot
(ServiceHandle<?> root) Method parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandleModifier and TypeMethodDescriptionprivate List
<ServiceHandle<?>> CurrentTaskFuture.UpOneLevel.applySorters
(List<ServiceHandle<?>> jobs) private static void
CurrentTaskFuture.invokeOnCancelled
(CurrentTaskFuture job, int levelAchieved, List<ServiceHandle<RunLevelListener>> listeners) private static ErrorInformation
CurrentTaskFuture.invokeOnError
(CurrentTaskFuture job, Throwable th, ErrorInformation.ErrorAction action, List<ServiceHandle<RunLevelListener>> listeners, Descriptor descriptor) private void
CurrentTaskFuture.invokeOnProgress
(ChangeableRunLevelFuture job, int level, List<ServiceHandle<RunLevelListener>> listeners) private void
CurrentTaskFuture.invokeOnProgressStarted
(ChangeableRunLevelFuture job, int level, List<ServiceHandle<ProgressStartedListener>> listeners) Constructor parameters in org.glassfish.hk2.runlevel.internal with type arguments of type ServiceHandleModifierConstructorDescriptionDownAllTheWay
(int goingTo, CurrentTaskFuture future, List<ServiceHandle<RunLevelListener>> listeners) private
QueueRunner
(ServiceLocator locator, AsyncRunLevelContext asyncContext, Object queueLock, List<ServiceHandle<?>> queue, CurrentTaskFuture.UpOneLevel parent, Object parentLock, int maxThreads) private
UpAllTheWay
(int goingTo, CurrentTaskFuture future, List<ServiceHandle<RunLevelListener>> listeners, List<ServiceHandle<Sorter>> sorters, int maxThreads, boolean useThreads, long cancelTimeout) private
UpOneLevel
(int paramUpToThisLevel, CurrentTaskFuture.UpAllTheWay master, CurrentTaskFuture currentTaskFuture, List<ServiceHandle<RunLevelListener>> listeners, List<ServiceHandle<Sorter>> sorters, int maxThreads, long cancelTimeout) -
Uses of ServiceHandle in org.glassfish.hk2.utilities
Fields in org.glassfish.hk2.utilities declared as ServiceHandleMethods in org.glassfish.hk2.utilities that return ServiceHandleModifier and TypeMethodDescriptionstatic <T> ServiceHandle
<T> BuilderHelper.createConstantServiceHandle
(T obj) Creates a ServiceHandle that will always return the given object from thegetService()
method.ContextualInput.getRoot()
Returns theServiceHandle
root associated with this contextual creationMethods in org.glassfish.hk2.utilities with parameters of type ServiceHandleModifier and TypeMethodDescriptionAliasDescriptor.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 ServiceHandleModifierConstructorDescriptionContextualInput
(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 ServiceHandleModifier and TypeClassDescriptionclass
This handle does the underlying work of getting the service.Fields in org.jvnet.hk2.internal with type parameters of type ServiceHandleModifier and TypeFieldDescriptionprivate final LinkedList
<ServiceHandle<?>> ServiceLocatorImpl.configListeners
private final List
<ServiceHandle<U>> IterableProviderImpl.HandleIterable.handles
private final LinkedList
<ServiceHandle<U>> IterableProviderImpl.MyHandleIterator.handles
private final LinkedList
<ServiceHandle<U>> IterableProviderImpl.MyIterator.handles
Methods in org.jvnet.hk2.internal that return ServiceHandleModifier and TypeMethodDescriptionprivate ServiceHandle
<Factory<T>> FactoryCreator.getFactoryHandle()
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) (package private) <T> ServiceHandle
<T> ServiceLocatorImpl.getUnqualifiedServiceHandle
(Type contractOrImpl, Unqualified unqualified, boolean isIterable, Annotation... qualifiers) IterableProviderImpl.MyHandleIterator.next()
Methods in org.jvnet.hk2.internal that return types with arguments of type ServiceHandleModifier and TypeMethodDescriptionList
<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) (package private) List
<ServiceHandle<?>> ServiceLocatorImpl.getAllUnqualifiedServiceHandles
(Type contractOrImpl, Unqualified unqualified, boolean isIterable, Annotation... qualifiers) List
<ServiceHandle<?>> ServiceHandleImpl.getSubHandles()
IterableProviderImpl.handleIterator()
IterableProviderImpl.HandleIterable.iterator()
private List
<ServiceHandle<?>> ServiceLocatorImpl.protectedGetAllServiceHandles
(Type contractOrImpl, Annotation... qualifiers) Methods in org.jvnet.hk2.internal with parameters of type ServiceHandleModifier and TypeMethodDescriptionServiceLocatorImpl.assistedInject
(Object injectMe, Method method, ServiceHandle<?> root, MethodParameter... params) int
ServiceHandleComparator.compare
(ServiceHandle<?> o1, ServiceHandle<?> o2) AutoActiveDescriptor.create
(ServiceHandle<?> root) ClazzCreator.create
(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) ConstantActiveDescriptor.create
(ServiceHandle<?> root) Creator.create
(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) Creates an instance of the given typeFactoryCreator.create
(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) 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) (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 Object
Utilities.justAssistedInject
(Object injectMe, Method method, ServiceLocatorImpl locator, ServiceHandle<?> root, MethodParameter... givenValues) Just injects this one methodprivate void
ClazzCreator.resolve
(Map<SystemInjecteeImpl, Object> addToMe, InjectionResolver<?> resolver, SystemInjecteeImpl injectee, ServiceHandle<?> root, Collector errorCollection) ThreeThirtyResolver.resolve
(Injectee injectee, ServiceHandle<?> root) private Map
<SystemInjecteeImpl, Object> ClazzCreator.resolveAllDependencies
(ServiceHandle<?> root) Method parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandleModifier and TypeMethodDescriptionprivate void
ServiceLocatorImpl.callAllConfigurationListeners
(List<ServiceHandle<?>> allListeners) Constructor parameters in org.jvnet.hk2.internal with type arguments of type ServiceHandleModifierConstructorDescriptionprivate
HandleIterable
(List<ServiceHandle<U>> handles) private
MyHandleIterator
(List<ServiceHandle<U>> handles) private
MyIterator
(List<ServiceHandle<U>> handles)
ServiceLocator.getService(ActiveDescriptor, ServiceHandle, Injectee)