@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)); }