package org.jboss.resteasy.test.cdi.interceptors.resource;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
public class InterceptorOne {
@Inject
private Logger log;
@AroundInvoke
public Object intercept(InvocationContext ctx) throws Exception {
log.info("*** Intercepting call in InterceptorOne.intercept()");
InterceptorVisitList.add(this);
Object result = ctx.proceed();
log.info("*** Back from intercepting call in InterceptorOne.intercept()");
return result;
}
}