Package scriptella.core
Class ElementInterceptor
java.lang.Object
scriptella.core.ElementInterceptor
- All Implemented Interfaces:
ExecutableElement
- Direct Known Subclasses:
ConnectionInterceptor,ExceptionInterceptor,IfInterceptor,StatisticInterceptor,TxInterceptor
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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedElementInterceptor(ExecutableElement next, DynamicContextDecorator ctxDecorator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecutes next element in the chain.protected DynamicContextDecoratorprotected ExecutableElementgetNext()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scriptella.core.ExecutableElement
execute
-
Constructor Details
-
ElementInterceptor
-
ElementInterceptor
-
-
Method Details
-
getCtxDecorator
-
getNext
-
executeNext
Executes next element in the chain.- Parameters:
ctx- dynamic context.- See Also:
-