下面列出了怎么用javax.ejb.PostActivate的API类实例代码及写法,或者点击链接到github查看源代码。
@PostActivate
public void activate() {
final String name = "POST_ACTIVATE" + (++activates);
try {
lifecycle.push(Enum.valueOf(Lifecycle.class, name));
} catch (final Exception e) {
lifecycle.push(name);
}
}
@PostActivate
public void method() {
}
@PostActivate
public void postActivate() {
ExecutionChannel.getInstance().notifyObservers("postActivate");
}
public Method PostActivate() throws NoSuchMethodException {
return this.getClass().getMethod("PostActivate");
}
@PostActivate
public void PostActivate(final InvocationContext invocationContext) throws Exception {
record(invocationContext, PostActivate());
}
@PostActivate
public void method() {
}
@PostActivate
public void myActivate() {
}
@PostActivate
public void myActivate(final Object anInvalidArgument) {
}
@Override
@PostActivate
public void ejbActivate() throws EJBException, RemoteException {
}
@PostActivate
public void myPostActivate() {
}
@PostActivate
public void postActivate(final InvocationContext ic) {
}
@PostActivate
public void beanActivate() throws EJBException, RemoteException {
calls.add((Call) Enum.valueOf(Call.class, "EjbActivate" + (++activates)));
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws Exception
*/
@PostActivate
public void secondClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "secondClassInterceptorPostActivate");
ctx.proceed();
return;
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws Exception
*/
@PostActivate
public void superClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "superClassInterceptorPostActivate");
ctx.proceed();
return;
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws Exception
*/
@PostActivate
public void classInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "classInterceptorPostActivate");
ctx.proceed();
return;
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @throws Exception runtime exceptions.
*/
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
setContextData(ctxData);
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @throws Exception runtime exceptions.
*/
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
setContextData(ctxData);
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @throws Exception runtime exceptions.
*/
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
setContextData(ctxData);
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws Exception runtime exceptions.
*/
@PostActivate
public void defaultInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "defaultInterceptorPostActivate");
ctx.proceed();
}
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @throws Exception runtime exceptions.
*/
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
setContextData(ctxData);
}
@PostActivate
public void colorPostActivate() {
}