1 7 package org.jboss.aspects.remoting.interceptors.invoker; 8 9 import org.jboss.aop.advice.Interceptor; 10 import org.jboss.aop.joinpoint.Invocation; 11 12 15 public class InvokerInterceptor implements Interceptor 16 { 17 18 public String getName() 19 { 20 return "InvokerInterceptor"; 21 } 22 23 public Object invoke(Invocation invocation) throws Throwable 24 { 25 Object ret = null; 26 27 Invocation newInvocation = RemotingInterceptorFactory.injectRemotingInterceptors(invocation); 30 31 if (newInvocation != null) 32 { 33 ret = newInvocation.invokeNext(); 34 } 35 else 36 { 37 throw new RuntimeException ("Could not make invocation due to new invocation object being null."); 38 } 39 40 return ret; 41 } 42 } | Popular Tags |