public Object invoke(Invocation invocation) throws Throwable { return invocation.invokeNext(); } }
/** * @see #proceed() */ public Object proceed() throws Throwable { return invocation.invokeNext(); }
public Object invoke(Invocation invocation) throws Throwable { return invocation.invokeNext(); } }
@Override public Object invoke(Invocation invocation) throws Throwable { return invocation.invokeNext(); } }
public Object invoke(Invocation invocation) throws Throwable { return invocation.invokeNext(); }
public Object invoke(Invocation invocation) throws Throwable { log.info("invoke, "+invocation); return invocation.invokeNext(); } }
public Object invoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable { if (!(invocation instanceof ConstructorInvocation)) return invocation.invokeNext(); Object response = invocation.invokeNext(); return Versioned.makeVersioned(response); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof ConstructorInvocation)) { throw new IllegalArgumentException("This interceptor is meant to be applied" + " only on new instantiation of @Spring annotated objects"); } Object target = invocation.invokeNext(); inject(target); return target; } }
/** * Wrap a returned managed property * * @param invocation the invocation * @return the wrapped managed property * @throws Throwable for any error */ public ManagedProperty wrapManagedProperty(Invocation invocation) throws Throwable { ManagedProperty result = (ManagedProperty) invocation.invokeNext(); return wrapManagedProperty(result); }
public static Object proceed() throws Throwable { return get().invokeNext(); } }
private Object interceptFieldGet(Invocation invocation, Method reflectionMethod, Object targetObject, Object[] args) throws Throwable { Field field = (Field) invocation.getTargetObject(); Matcher m = fieldGetPattern.matcher(reflectionMethod.getName()); if (m.matches()) { Object instance = args[0]; return interceptFieldRead(invocation, field, instance); } return invocation.invokeNext(); }
private Object interceptFieldSet(Invocation invocation, Method reflectionMethod, Object targetObject, Object[] args) throws Throwable { Field field = (Field) invocation.getTargetObject(); Matcher m = fieldSetPattern.matcher(reflectionMethod.getName()); if (m.matches()) { Object instance = args[0]; return interceptFieldWrite(invocation, field, instance, args[1]); } return invocation.invokeNext(); }
public Object invoke(Invocation invocation) throws Throwable { if (new CFlowMatcher().matches(expr, invocation)) { Invocation wrapper = invocation.getWrapper(chain); return wrapper.invokeNext(); } // no match for cflow so just go down chain return invocation.invokeNext(); } }
private Object interceptMethodInvoke(Invocation invocation, Method reflectionMethod, Object targetObject, Object[] args) throws Throwable { Method method = (Method) invocation.getTargetObject(); if (reflectionMethod.getName().equals("invoke")) { Object instance = args[0]; return interceptMethod(invocation, method, instance, (Object[]) args[1]); } return invocation.invokeNext(); }
public Object invoke(Invocation invocation) throws Throwable { try { AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsFlags.IN_EJB_TIMEOUT); return invocation.invokeNext(); } finally { AllowedOperationsAssociation.popInMethodFlag(); } }
public Object invoke(Invocation invocation) throws Throwable { Container localContainer = findLocalContainer(invocation); if (localContainer != null) { return invokeLocal(invocation, localContainer); } return invocation.invokeNext(); }
public org.jboss.aop.joinpoint.InvocationResponse _dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable { ((org.jboss.aop.joinpoint.InvocationBase) invocation).setInstanceResolver(instanceAdvisor.getMetaData()); org.jboss.aop.advice.Interceptor[] aspects = instanceAdvisor.getInterceptors(); return new org.jboss.aop.joinpoint.InvocationResponse(invocation.invokeNext(aspects)); }
public Object invoke(Invocation invocation) throws Throwable { EJBContainerInvocation inv = (EJBContainerInvocation) invocation; //We need to do this every time to make sure we have interceptor instances corresponding //to the bean instance //TODO Cache this for non-stateful beans? Object[] interceptors = inv.getBeanContext().getInterceptorInstances(interceptorInfos); if (interceptors != null && interceptors.length == 0 && beanAroundInvokes != null && beanAroundInvokes.length == 0) return invocation.invokeNext(); InvocationContextImpl ctx = new InvocationContextImpl(inv, interceptorInfos, interceptors, beanAroundInvokes); return ctx.proceed(); }
public org.jboss.aop.joinpoint.InvocationResponse _dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable { ((org.jboss.aop.joinpoint.InvocationBase) invocation).setInstanceResolver(instanceAdvisor.getMetaData()); org.jboss.aop.advice.Interceptor[] aspects = instanceAdvisor.getInterceptors(); return new org.jboss.aop.joinpoint.InvocationResponse(invocation.invokeNext(aspects)); }
public Object invoke(Invocation invocation) throws Throwable { if (isLocal()) { String guid = (String)invocation.getMetaData(IS_LOCAL, GUID); Container container = Ejb3Registry.getContainer(guid); return invokeLocal(invocation, container); } return invocation.invokeNext(); }