|
Invocation API 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.invocation.Interceptors
public final class Interceptors
Interceptor utility and factory methods.
| Method Summary | |
|---|---|
static Interceptor |
getChainedInterceptor(Collection<Interceptor> instances)
Get a chained interceptor which passes the invocation through the given interceptors. |
static Interceptor |
getChainedInterceptor(Interceptor... instances)
Get a chained interceptor which passes the invocation through the given interceptors. |
static InterceptorFactory |
getChainedInterceptorFactory(Collection<InterceptorFactory> instances)
Get a chained interceptor which passes the invocation through the given interceptors. |
static InterceptorFactory |
getChainedInterceptorFactory(InterceptorFactory... instances)
Get a chained interceptor factory which builds a chained interceptor using the given factories. |
static Interceptor |
getInitialInterceptor()
Get an interceptor that is always invoked first. |
static InterceptorFactory |
getInitialInterceptorFactory()
Get the interceptor factory for the initial interceptor. |
static Interceptor |
getInvokingInterceptor()
Get an invoking interceptor which always terminates. |
static InterceptorFactory |
getInvokingInterceptorFactory()
Get a factory which returns the invoking interceptor. |
static Interceptor |
getTerminalInterceptor()
Get an interceptor which always returns null. |
static InterceptorFactory |
getTerminalInterceptorFactory()
Get a factory which returns the terminal interceptor. |
static Interceptor |
getWeavedInterceptor(Interceptor... interceptors)
|
static Exception |
rethrow(Throwable throwable)
Convenience method to get a Throwable as an Exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Interceptor getInitialInterceptor()
public static InterceptorFactory getInitialInterceptorFactory()
public static Interceptor getTerminalInterceptor()
null.
public static InterceptorFactory getTerminalInterceptorFactory()
public static Interceptor getInvokingInterceptor()
null, this interceptor returns
null, making it suitable for terminating lifecycle interceptor chains as well as invocation
interceptor chains.
public static InterceptorFactory getInvokingInterceptorFactory()
public static Interceptor getChainedInterceptor(Interceptor... instances)
instances - the interceptors to pass through
public static Interceptor getChainedInterceptor(Collection<Interceptor> instances)
instances - the interceptors to pass through
public static InterceptorFactory getChainedInterceptorFactory(InterceptorFactory... instances)
instances - the interceptor factories to use
public static InterceptorFactory getChainedInterceptorFactory(Collection<InterceptorFactory> instances)
instances - the interceptors to pass through
public static Interceptor getWeavedInterceptor(Interceptor... interceptors)
public static Exception rethrow(Throwable throwable)
throws Error
Throwable as an Exception.
throwable - the throwable
Error - if the throwable is an error type
|
Invocation API 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||