|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectInterceptorContext
public class InterceptorContext
Context object that encapsulates the configuration for an entire interceptor chain.
Constructor Summary | |
---|---|
InterceptorContext()
|
Method Summary | |
---|---|
protected static Interceptor |
addInterceptor(InterceptorConfig config,
Class baseClassOrInterface,
List interceptors)
Instantiates an interceptor, based on the class name in the given InterceptorConfig, and adds it to the given collection of interceptors. |
protected static void |
addInterceptors(InterceptorConfig[] configBeans,
List interceptorsList,
Class baseClassOrInterface)
Add an Interceptor to the list of interceptors. |
protected static Interceptor |
createInterceptor(InterceptorConfig config,
Class baseClassOrInterface)
Instantiates an interceptor using the class name in the given InterceptorConfig. |
Interceptor |
getOverridingInterceptor()
|
Object |
getResultOverride()
|
boolean |
hasResultOverride()
|
void |
setResultOverride(Object newResult,
Interceptor interceptor)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterceptorContext()
Method Detail |
---|
public void setResultOverride(Object newResult, Interceptor interceptor)
public boolean hasResultOverride()
public Object getResultOverride()
public Interceptor getOverridingInterceptor()
protected static void addInterceptors(InterceptorConfig[] configBeans, List interceptorsList, Class baseClassOrInterface)
Interceptor
to the list of interceptors.
configBeans
- an array of JavaBeans that configure a set of interceptorsinterceptorsList
- the list of Interceptor
instancesbaseClassOrInterface
- protected static Interceptor addInterceptor(InterceptorConfig config, Class baseClassOrInterface, List interceptors)
config
- the InterceptorConfig used to determine the interceptor class.baseClassOrInterface
- the required base class or interface. May be null
.interceptors
- the List of interceptors to which to add.
null
if an error occurred.protected static Interceptor createInterceptor(InterceptorConfig config, Class baseClassOrInterface)
config
- the InterceptorConfig
used to determine the Interceptor
class.baseClassOrInterface
- the required base class or interface. May be null
.
null
if an error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |