java.lang.Object
org.jvnet.hk2.internal.ServiceHandleImpl<T>
- Type Parameters:
T- The type of service to create
- All Implemented Interfaces:
Closeable,AutoCloseable,org.glassfish.hk2.api.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()org.glassfish.hk2.api.ActiveDescriptor<T>org.glassfish.hk2.api.InjecteeList<org.glassfish.hk2.api.ServiceHandle<?>>booleanisActive()voidvoidpushInjectee(org.glassfish.hk2.api.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 interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
getActiveDescriptor
- Specified by:
getActiveDescriptorin interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
setServiceData
- Specified by:
setServiceDatain interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
getServiceData
- Specified by:
getServiceDatain interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
getSubHandles
- Specified by:
getSubHandlesin interfaceorg.glassfish.hk2.api.ServiceHandle<T>
-
pushInjectee
public void pushInjectee(org.glassfish.hk2.api.Injectee push) -
popInjectee
public void popInjectee() -
addSubHandle
Add a sub handle to this for proper destruction- Parameters:
subHandle- A handle to add for proper destruction
-
getOriginalRequest
public org.glassfish.hk2.api.Injectee getOriginalRequest() -
toString
-