|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Wrapped
Optional contract for services that wrap stuff that to which it is useful to have access. For example, a service
that maintains a DataSource
might want to expose access to the DataSource
or
its Connection
instances.
Method Summary | ||
---|---|---|
boolean |
isUnwrappableAs(Class unwrapType)
Can this wrapped service be unwrapped as the indicated type? |
|
|
unwrap(Class<T> unwrapType)
Unproxy the service proxy |
Method Detail |
---|
boolean isUnwrappableAs(Class unwrapType)
unwrapType
- The type to check.
<T> T unwrap(Class<T> unwrapType)
unwrapType
- The java type as which to unwrap this instance.
UnknownUnwrapTypeException
- if the servicebe unwrapped as the indicated type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |