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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUnwrappableAs(Class unwrapType)
Can this wrapped service be unwrapped as the indicated type?
|
<T> T |
unwrap(Class<T> unwrapType)
Unproxy the service proxy
|
boolean isUnwrappableAs(Class unwrapType)
Can this wrapped service be unwrapped as the indicated type?
unwrapType - The type to check.<T> T unwrap(Class<T> unwrapType)
Unproxy the service proxy
unwrapType - The java type as which to unwrap this instance.UnknownUnwrapTypeException - if the servicebe unwrapped as the indicated typeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.