Class LifecycleInterceptor
- java.lang.Object
-
- info.ejava.examples.ejb.interceptor.interceptors.LifecycleInterceptor
-
@Interceptor public class LifecycleInterceptor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private EJBContext
ejbCtx
private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description LifecycleInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ctor(InvocationContext ctx)
void
destory(InvocationContext ctx)
void
init(InvocationContext ctx)
Object
invoke(InvocationContext ctx)
Object
timeout(InvocationContext ctx)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
ejbCtx
private EJBContext ejbCtx
-
-
Method Detail
-
ctor
public void ctor(InvocationContext ctx)
-
init
@PostConstruct public void init(InvocationContext ctx)
-
invoke
public Object invoke(InvocationContext ctx) throws Exception
- Throws:
Exception
-
timeout
public Object timeout(InvocationContext ctx) throws Exception
- Throws:
Exception
-
destory
@PreDestroy public void destory(InvocationContext ctx)
-
-