@Override public void perform(Rewrite event, EvaluationContext context) { rule.perform(event, context); }
@Override public void perform(Rewrite event, EvaluationContext context) { rule.perform(event, context); }
@Override public ConfigurationRuleBuilder perform(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.perform(operation); } rule.perform(operation); return this; }
@Override public ConfigurationRuleBuilder perform(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.perform(operation); } rule.perform(operation); return this; }
@Override public ConfigurationRuleBuilderPerform perform(Operation operation, Operation... operations) { List<Operation> list = new LinkedList<Operation>(); list.add(operation); list.addAll(Arrays.asList(operations)); for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { list = interceptor.perform(list); } rule.perform(Perform.all(list.toArray(new Operation[list.size()]))); return this; }
@Override public ConfigurationRuleBuilderPerform perform(Operation operation, Operation... operations) { List<Operation> list = new LinkedList<Operation>(); list.add(operation); list.addAll(Arrays.asList(operations)); for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { list = interceptor.perform(list); } rule.perform(Perform.all(list.toArray(new Operation[list.size()]))); return this; }
@Override public void process(ClassContext context, ForwardTo annotation, HandlerChain chain) { context.getRuleBuilder().perform(Forward.to(annotation.value())); chain.proceed(); } }
@Override public void process(ClassContext context, ForwardTo annotation, HandlerChain chain) { context.getRuleBuilder().perform(Forward.to(annotation.value())); chain.proceed(); } }
@Override public void process(MethodContext context, RequestAction annotation, HandlerChain chain) { // create an Operation for executing this method Method method = context.getJavaMethod(); El el = El.retrievalMethod(context.getJavaClass(), method.getName()); Operation plainOperation = Invoke.binding(el); // let subsequent handlers enrich the operation context.put(Operation.class, plainOperation); chain.proceed(); Operation enrichedOperation = (Operation) context.get(Operation.class); Assert.notNull(enrichedOperation, "Operation was removed from the context"); // append this operation to the rule context.getRuleBuilder().perform(Operations.onInbound(enrichedOperation)); }
@Override public void process(MethodContext context, RequestAction annotation, HandlerChain chain) { // create an Operation for executing this method Method method = context.getJavaMethod(); El el = El.retrievalMethod(context.getJavaClass(), method.getName()); Operation plainOperation = Invoke.binding(el); // let subsequent handlers enrich the operation context.put(Operation.class, plainOperation); chain.proceed(); Operation enrichedOperation = (Operation) context.get(Operation.class); Assert.notNull(enrichedOperation, "Operation was removed from the context"); // append this operation to the rule context.getRuleBuilder().perform(Operations.onInbound(enrichedOperation)); }