org.apache.beehive.netui.pageflow.interceptor
Interface Interceptor

All Known Implementing Classes:
AbstractClientRequestInterceptor, AbstractInterceptor, ActionInterceptor, DivPanelCRI, RequestInterceptor, TreeCRI

public interface Interceptor

Base interface for all NetUI / Page Flow interceptors. An interceptor consists of an initialization step and two blocks of code that run before and after some block of code or event that is being intercepted.


Method Summary
 void init(InterceptorConfig config)
          Method used to initialize the interceptor.
 void postInvoke(InterceptorContext context, InterceptorChain chain)
          Method invoked during "post" interception of some block of code / event.
 void preInvoke(InterceptorContext context, InterceptorChain chain)
          Method invoked during "pre" interception of some block of code / event.
 

Method Detail

init

void init(InterceptorConfig config)
Method used to initialize the interceptor.

Parameters:
config - the InterceptorConfig object

preInvoke

void preInvoke(InterceptorContext context,
               InterceptorChain chain)
               throws InterceptorException
Method invoked during "pre" interception of some block of code / event.

Parameters:
context - the interception context
chain - the chain of interceptors
Throws:
InterceptorException - an exception thrown when an error occurs during interception

postInvoke

void postInvoke(InterceptorContext context,
                InterceptorChain chain)
                throws InterceptorException
Method invoked during "post" interception of some block of code / event.

Parameters:
context - the interceptor context
chain - the chain of interceptors
Throws:
InterceptorException - an exception thrown when an error occurs during interception