1 25 package org.objectweb.easybeans.tests.common.interceptors.business.resourceref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkResource; 28 29 import java.net.URL ; 30 31 import javax.annotation.Resource; 32 import javax.ejb.SessionContext ; 33 import javax.interceptor.InvocationContext; 34 35 41 public class URLInterceptor { 42 43 46 @Resource 47 private SessionContext sessionContext; 48 49 53 private URL url00; 54 55 61 public Object aroundInvoke(final InvocationContext invocationContext) throws Exception { 62 checkResource(sessionContext, url00, "url/url00"); 63 return invocationContext.proceed(); 64 } 65 } 66 | Popular Tags |