}
public static InterceptorDescriptor createInterceptorDesc() {
InterceptorDescriptor interceptor = new InterceptorDescriptor();
Class interceptorClass = SystemInterceptorProxy.class;
String interceptorName = interceptorClass.getName();
interceptor.setInterceptorClass(interceptorClass);
{
LifecycleCallbackDescriptor desc = new LifecycleCallbackDescriptor();
desc.setLifecycleCallbackClass(interceptorName);
desc.setLifecycleCallbackMethod("create");
interceptor.addCallbackDescriptor(CallbackType.AROUND_CONSTRUCT, desc);
}
{
LifecycleCallbackDescriptor desc = new LifecycleCallbackDescriptor();
desc.setLifecycleCallbackClass(interceptorName);
desc.setLifecycleCallbackMethod("init");
interceptor.addCallbackDescriptor(CallbackType.POST_CONSTRUCT, desc);
}
{
LifecycleCallbackDescriptor desc = new LifecycleCallbackDescriptor();
desc.setLifecycleCallbackClass(interceptorName);
desc.setLifecycleCallbackMethod("destroy");
interceptor.addCallbackDescriptor(CallbackType.PRE_DESTROY, desc);
}
{
LifecycleCallbackDescriptor desc = new LifecycleCallbackDescriptor();
desc.setLifecycleCallbackClass(interceptorName);
desc.setLifecycleCallbackMethod("aroundInvoke");
interceptor.addAroundInvokeDescriptor(desc);
}
{
LifecycleCallbackDescriptor desc = new LifecycleCallbackDescriptor();
desc.setLifecycleCallbackClass(interceptorName);
desc.setLifecycleCallbackMethod("aroundTimeout");
interceptor.addAroundTimeoutDescriptor(desc);
}
return interceptor;