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
|
Injectee |
getOriginalRequest() |
T |
getService()
Gets the underlying service object
|
Object |
getServiceData()
Service data can be set on a service handle.
|
boolean |
isActive()
This returns true if the underlying service has already been
created
|
void |
popInjectee() |
void |
pushInjectee(Injectee push) |
void |
setServiceData(Object serviceData)
Service data can be set on a service handle.
|
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 setServiceData(Object serviceData)
ServiceHandlesetServiceData in interface ServiceHandle<T>serviceData - Sets the serviceData for the handle
(may be null)public Object getServiceData()
ServiceHandlegetServiceData in interface ServiceHandle<T>public void pushInjectee(Injectee push)
public void popInjectee()
public void addSubHandle(ServiceHandleImpl<?> subHandle)
subHandle - A handle to add for proper destructionpublic Injectee getOriginalRequest()
Copyright © 2009–2017 Oracle Corporation. All rights reserved.