public interface ServerContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWrapperFor(java.lang.Class<?> iface)
Returns true if this server context is a wrapper for the provided
application specific context interface argument or returns false otherwise.
|
<T> T |
unwrap(java.lang.Class<T> iface)
Returns an object that implements the given interface to allow access to
application specific contexts.
|
<T> T unwrap(java.lang.Class<T> iface)
iface - A Class defining an interface that the result must implementjava.lang.RuntimeException - If the context cannot be unwrapped to the provided
classboolean isWrapperFor(java.lang.Class<?> iface)
iface - a Class defining the underlying contextjava.lang.RuntimeException - if an error occurs while determining whether the
provided class can be unwrapped from this context.