java.lang.Object
org.jvnet.hk2.internal.ServiceHandleImpl<T>
- Type Parameters:
T- The type of service to create
- All Implemented Interfaces:
Closeable,AutoCloseable,ServiceHandle<T>
This handle does the underlying work of getting the service. Only
at the time that the getService call is made is the service gotten
from the context. Once a service has been gotten, it is not looked
up again.
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubHandle(ServiceHandleImpl<?> subHandle) Add a sub handle to this for proper destructionvoidclose()List<ServiceHandle<?>>booleanisActive()voidvoidpushInjectee(Injectee push) voidsetServiceData(Object serviceData) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.api.ServiceHandle
destroy
-
Method Details
-
getService
- Specified by:
getServicein interfaceServiceHandle<T>
-
getActiveDescriptor
- Specified by:
getActiveDescriptorin interfaceServiceHandle<T>
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceServiceHandle<T>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceServiceHandle<T>
-
setServiceData
- Specified by:
setServiceDatain interfaceServiceHandle<T>
-
getServiceData
- Specified by:
getServiceDatain interfaceServiceHandle<T>
-
getSubHandles
- Specified by:
getSubHandlesin interfaceServiceHandle<T>
-
pushInjectee
-
popInjectee
public void popInjectee() -
addSubHandle
Add a sub handle to this for proper destruction- Parameters:
subHandle- A handle to add for proper destruction
-
getOriginalRequest
-
toString
-