public abstract class AbstractInterceptionChain extends Object implements InterceptionChain
Modifier | Constructor and Description |
---|---|
protected |
AbstractInterceptionChain(InterceptorInvocation interceptorInvocation) |
protected |
AbstractInterceptionChain(List<InterceptorClassMetadata<?>> interceptorMetadata,
InterceptionContext ctx,
InterceptionType interceptionType) |
protected |
AbstractInterceptionChain(Object instance,
Method method,
Object[] args,
InterceptionType interceptionType,
InterceptionContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNextInterceptor()
Indicates whether there are not-yet-invoked interceptor methods in the chain.
|
protected abstract Object |
interceptorChainCompleted(javax.interceptor.InvocationContext invocationContext) |
protected Object |
invokeNext(javax.interceptor.InvocationContext invocationContext) |
Object |
invokeNextInterceptor(javax.interceptor.InvocationContext invocationContext)
Invokes the next interceptor method in the chain.
|
protected AbstractInterceptionChain(Object instance, Method method, Object[] args, InterceptionType interceptionType, InterceptionContext ctx)
protected AbstractInterceptionChain(List<InterceptorClassMetadata<?>> interceptorMetadata, InterceptionContext ctx, InterceptionType interceptionType)
protected AbstractInterceptionChain(InterceptorInvocation interceptorInvocation)
public Object invokeNextInterceptor(javax.interceptor.InvocationContext invocationContext) throws Exception
InterceptionChain
InvocationContext.proceed()
is invoked by the
interceptor.invokeNextInterceptor
in interface InterceptionChain
invocationContext
- the invocation context to be passed to the interceptor methodException
protected Object invokeNext(javax.interceptor.InvocationContext invocationContext) throws Exception
Exception
protected abstract Object interceptorChainCompleted(javax.interceptor.InvocationContext invocationContext) throws Exception
Exception
public boolean hasNextInterceptor()
InterceptionChain
hasNextInterceptor
in interface InterceptionChain
Copyright © 2016. All rights reserved.