T - The type of service to createpublic class ServiceHandleImpl<T> extends Object implements ServiceHandle<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addSubHandle(ServiceHandleImpl<?> subHandle)
Add a sub handle to this for proper destruction
|
void |
destroy()
Will destroy this object and all PerLookup instances created
because of this service
|
ActiveDescriptor<T> |
getActiveDescriptor()
Returns the ActiveDescriptor associated with this service handle
|
T |
getService()
Gets the underlying service object
|
boolean |
isActive()
This returns true if the underlying service has already been
created
|
String |
toString() |
public T getService()
ServiceHandlegetService in interface ServiceHandle<T>public ActiveDescriptor<T> getActiveDescriptor()
ServiceHandlegetActiveDescriptor in interface ServiceHandle<T>public boolean isActive()
ServiceHandleisActive in interface ServiceHandle<T>public void destroy()
ServiceHandledestroy in interface ServiceHandle<T>public void addSubHandle(ServiceHandleImpl<?> subHandle)
subHandle - A handle to add for proper destructionCopyright © 2014 Oracle Corporation. All rights reserved.