| 1 16 package scriptella.core; 17 18 19 28 public abstract class ElementInterceptor implements ExecutableElement { 29 private ExecutableElement next; 30 private DynamicContextDecorator ctxDecorator; 31 32 protected ElementInterceptor(ExecutableElement next) { 33 this.next = next; 34 } 35 36 protected ElementInterceptor(ExecutableElement next, 37 DynamicContextDecorator ctxDecorator) { 38 this.next = next; 39 this.ctxDecorator = ctxDecorator; 40 } 41 42 protected DynamicContextDecorator getCtxDecorator() { 43 return ctxDecorator; 44 } 45 46 protected ExecutableElement getNext() { 47 return next; 48 } 49 50 55 protected void executeNext(final DynamicContext ctx) { 56 getNext().execute(ctx); 57 } 58 } 59 | Popular Tags |