|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the service that can be returnedpublic interface ServiceHandle<T>
This service handle can be used to get a specific instance of a service, and can be used to destroy that service as well
Method Summary | |
---|---|
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 |
Method Detail |
---|
T getService()
MultiException
- if there was an error creating the service
IllegalStateException
- if the handle was previously destroyedActiveDescriptor<T> getActiveDescriptor()
boolean isActive()
void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |