|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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. |
|
|
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets a ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor. |
|
|
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee)
Gets a ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor. |
|
|
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 |
|
|
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 |
|
| Methods in org.glassfish.hk2.api that return types with arguments of type ServiceHandle | |
|---|---|
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 |
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Filter searchCriteria)
Gets a list of ServiceHandle whose ActiveDescriptors 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 |
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. |
|
|
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. |
|
|
ServiceLocator.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
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. |
|
| Uses of ServiceHandle in org.glassfish.hk2.internal |
|---|
| Methods in org.glassfish.hk2.internal with parameters of type ServiceHandle | ||
|---|---|---|
T |
ConstantActiveDescriptor.create(ServiceHandle<?> root)
|
|
|
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)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||