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
|
boolean |
isActive()
This returns true if the underlying service has already been
created
|
T getService()
MultiException
- if there was an error creating the serviceIllegalStateException
- if the handle was previously destroyedActiveDescriptor<T> getActiveDescriptor()
boolean isActive()
void destroy()
Copyright © 2014 Oracle Corporation. All rights reserved.