T
- The type of the service that can be returnedpublic interface ServiceHandle<T>
Modifier and Type | Method and Description |
---|---|
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
|
Object |
getServiceData()
Service data can be set on a service handle.
|
List<ServiceHandle<?>> |
getSubHandles()
Returns a list of subordinate subhandles
to this root handle
|
boolean |
isActive()
This returns true if the underlying service has already been
created
|
void |
setServiceData(Object serviceData)
Service data can be set on a service handle.
|
T getService()
MultiException
- if there was an error creating the serviceIllegalStateException
- if the handle was previously destroyedActiveDescriptor<T> getActiveDescriptor()
boolean isActive()
void destroy()
void setServiceData(Object serviceData)
serviceData
- Sets the serviceData for the handle
(may be null)Object getServiceData()
List<ServiceHandle<?>> getSubHandles()
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.