package test.implementation.interceptor.support;
import org.jboss.mx.interceptor.AbstractSharedInterceptor;
import org.jboss.mx.server.Invocation;
public class MySharedInterceptor
extends AbstractSharedInterceptor
{
public boolean isInit = false;
public boolean isStart = false;
public boolean isStop = false;
public boolean isDestroy = false;
public MySharedInterceptor()
{
super("MySharedInterceptor");
}
public Object invoke(Invocation i) throws Throwable
{
i.setType("something");
return super.invoke(i);
}
public void init() throws Exception
{
isInit = true;
}
public void start()
{
isStart = true;
}
public void stop() throws Exception
{
isStop = true;
}
public void destroy()
{
isDestroy = true;
}
}