scriptella.core
Class ElementInterceptor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementInterceptor
protected ElementInterceptor(ExecutableElement next)
ElementInterceptor
protected ElementInterceptor(ExecutableElement next,
DynamicContextDecorator ctxDecorator)
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.