scriptella.core
Class ElementInterceptor

java.lang.Object
  extended by scriptella.core.ElementInterceptor
All Implemented Interfaces:
ExecutableElement
Direct Known Subclasses:
ConnectionInterceptor, ExceptionInterceptor, IfInterceptor, StatisticInterceptor, TxInterceptor

public abstract class ElementInterceptor
extends java.lang.Object
implements ExecutableElement

Base class for executable elements interceptors.

Based on Chain-Of-Responsibility (GOF CoR) pattern.

The purpose of this class is to provide an AOP-style approach for adding additional functionality.

Version:
1.0
Author:
Fyodor Kupolov
See Also:
DynamicContextDecorator

Constructor Summary
protected ElementInterceptor(ExecutableElement next)
           
protected ElementInterceptor(ExecutableElement next, DynamicContextDecorator ctxDecorator)
           
 
Method Summary
protected  void executeNext(DynamicContext ctx)
          Executes next element in the chain.
protected  DynamicContextDecorator getCtxDecorator()
           
protected  ExecutableElement getNext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scriptella.core.ExecutableElement
execute
 

Constructor Detail

ElementInterceptor

protected ElementInterceptor(ExecutableElement next)

ElementInterceptor

protected ElementInterceptor(ExecutableElement next,
                             DynamicContextDecorator ctxDecorator)
Method Detail

getCtxDecorator

protected DynamicContextDecorator getCtxDecorator()

getNext

protected ExecutableElement getNext()

executeNext

protected void executeNext(DynamicContext ctx)
Executes next element in the chain.

Parameters:
ctx - dynamic context.
See Also:
ExecutableElement.execute(DynamicContext)


Copyright © Copyright 2006-2009 The Scriptella Project Team.