public final class Interceptors extends Object
Modifier and Type | Method and Description |
---|---|
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)
|
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 throughpublic static Interceptor getChainedInterceptor(Collection<Interceptor> instances)
instances
- the interceptors to pass throughpublic static InterceptorFactory getChainedInterceptorFactory(InterceptorFactory... instances)
instances
- the interceptor factories to usepublic static InterceptorFactory getChainedInterceptorFactory(Collection<InterceptorFactory> instances)
instances
- the interceptors to pass throughpublic static Interceptor getWeavedInterceptor(Interceptor... interceptors)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.