Uses of Interface
org.glassfish.hk2.api.ServiceHandle

Packages that use ServiceHandle
org.glassfish.hk2.api   
org.glassfish.hk2.internal   
org.glassfish.hk2.utilities   
 

Uses of ServiceHandle in org.glassfish.hk2.api
 

Methods in org.glassfish.hk2.api that return ServiceHandle
 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 service handle that can be used to get and destroy the returned service.
<T> ServiceHandle<T>
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
          Gets a service handle that can be used to get and destroy the returned service.
<T> ServiceHandle<T>
ServiceLocator.getServiceHandle(Type contractOrImpl, Annotation... qualifiers)
          Gets a service handle that can be used to get and destroy the returned service.
<T> ServiceHandle<T>
ServiceLocator.getServiceHandle(Type contractOrImpl, String name, Annotation... qualifiers)
          Gets a service handle that can be used to get and destroy the returned service
 

Methods in org.glassfish.hk2.api that return types with arguments of type ServiceHandle
 List<ServiceHandle<?>> ServiceLocator.getAllServiceHandles(Annotation qualifier, Annotation... qualifiers)
          Gets service handles that can be used to get and destroy the returned services
 List<ServiceHandle<?>> ServiceLocator.getAllServiceHandles(Filter searchCriteria)
          Gets a service handle that can be used to get and destroy the returned service.
 List<ServiceHandle<?>> ServiceLocator.getAllServiceHandles(Type contractOrImpl, Annotation... qualifiers)
          Gets service handles that can be used to get and destroy the returned services
 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
 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)
          This method should be called by code getting injectee's on behalf of some root object.
 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.internal
 

Methods in org.glassfish.hk2.internal with parameters of type ServiceHandle
 T ConstantActiveDescriptor.create(ServiceHandle<?> root)
           
<U> U
PerThreadContext.findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
           
 

Uses of ServiceHandle in org.glassfish.hk2.utilities
 

Methods in org.glassfish.hk2.utilities with parameters of type ServiceHandle
 T AliasDescriptor.create(ServiceHandle<?> root)
           
 



Copyright © 2012 Oracle Corporation. All Rights Reserved.