| Modifier and Type | Method and Description |
|---|---|
| public default void | close()
Implements java. Will destroy this object and all PerLookup instances created because of this service |
| public default void | |
| public ActiveDescriptor | Returns: The ActiveDescriptor associated with this handle. Can return null in cases where the Handle describes a service not associated with an hk2 service, such as a constant serviceReturns the ActiveDescriptor associated with this service handle |
| public T | Returns: May return null (if the backing ActiveDescriptor returned null)Gets the underlying service object |
| public Object | Returns: The service data for this service handle (may return null)Service data can be set on a service handle. |
| public List | Returns: A non-null but possibly empty list of subhandles subordinate to this rootReturns a list of subordinate subhandles to this root handle |
| public boolean | Returns: true if the underlying service has been createdThis returns true if the underlying service has already been created |
| public void | setServiceData(Object
Sets the serviceData for the handle
(may be null) serviceData)Service data can be set on a service handle. |
| close | back to summary |
|---|---|
| public default void close() Implements java. Will destroy this object and all PerLookup instances created because of this service
| |
| destroy | back to summary |
|---|---|
| public default void destroy()
Deprecated since 2.6. Use Will destroy this object and all PerLookup instances created because of this service
| |
| getActiveDescriptor | back to summary |
|---|---|
| public ActiveDescriptor Returns the ActiveDescriptor associated with this service handle
| |
| getService | back to summary |
|---|---|
| public T getService() Gets the underlying service object
| |
| getServiceData | back to summary |
|---|---|
| public Object getServiceData() Service data can be set on a service handle. If the service data is set prior to the services associated Context has created an instance then this service data can be used to influence the context's creation of the service. The service data is associated with a handle, not with the service itself
| |
| getSubHandles | back to summary |
|---|---|
| public List Returns a list of subordinate subhandles to this root handle
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() This returns true if the underlying service has already been created
| |
| setServiceData | back to summary |
|---|---|
| public void setServiceData(Object serviceData) Service data can be set on a service handle. If the service data is set prior to the services associated Context has created an instance then this service data can be used to influence the context's creation of the service. The service data is associated with a handle, not with the service itself
| |