类javax.ejb.PrePassivate源码实例Demo

下面列出了怎么用javax.ejb.PrePassivate的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: tomee   文件: StatefulContainerTest.java
@PrePassivate
public void passivate() {
    final String name = "PRE_PASSIVATE" + (++passivates);
    try {
        lifecycle.push(Enum.valueOf(Lifecycle.class, name));
    } catch (final Exception e) {
        lifecycle.push(name);
    }
}
 
源代码2 项目: netbeans   文件: NewSessionBean.java
@PrePassivate
public void businessMethod() {
}
 
源代码3 项目: tomee   文件: CallbackCounter.java
@PrePassivate
public void prePassivate() {
    ExecutionChannel.getInstance().notifyObservers("prePassivate");
}
 
源代码4 项目: tomee   文件: StatsInterceptor.java
public Method PrePassivate() throws NoSuchMethodException {
    return this.getClass().getMethod("PrePassivate");
}
 
源代码5 项目: tomee   文件: StatsInterceptor.java
@PrePassivate
public void PrePassivate(final InvocationContext invocationContext) throws Exception {
    record(invocationContext, PrePassivate());
}
 
源代码6 项目: tomee   文件: PrePassivateMetaTest.java
@PrePassivate
public void method() {
}
 
源代码7 项目: tomee   文件: InheritenceTest.java
@PrePassivate
public void colorPrePassivate() {
}
 
源代码8 项目: tomee   文件: CheckInvalidCallbacksTest.java
@PrePassivate
public void myPassivate() {
}
 
源代码9 项目: tomee   文件: CheckInvalidCallbacksTest.java
@PrePassivate
public void myPassivate() {
}
 
源代码10 项目: tomee   文件: CheckInvalidCallbacksTest.java
@Override
@PrePassivate
public void ejbPassivate() throws EJBException, RemoteException {
}
 
源代码11 项目: tomee   文件: CheckInvalidCallbacksTest.java
@PrePassivate
public void myPrePassivate() {
}
 
源代码12 项目: tomee   文件: CheckInvalidCallbacksTest.java
@PrePassivate
public void prePassivate(final InvocationContext ic) {
}
 
源代码13 项目: tomee   文件: Compat3to2Test.java
@PrePassivate
public void beanPassivate() throws EJBException, RemoteException {
    calls.add((Call) Enum.valueOf(Call.class, "EjbPassivate" + (++passivates)));
}
 
源代码14 项目: tomee   文件: SecondClassInterceptor.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PrePassivate
public void secondClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "secondClassInterceptorPrePassivate");
    ctx.proceed();
    return;
}
 
源代码15 项目: tomee   文件: SuperClassInterceptor.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PrePassivate
public void superClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "superClassInterceptorPrePassivate");
    ctx.proceed();
    return;
}
 
源代码16 项目: tomee   文件: ClassInterceptor.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PrePassivate
public void classInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "classInterceptorPrePassivate");
    ctx.proceed();
    return;
}
 
源代码17 项目: netbeans   文件: NewMessageBean.java
@PrePassivate
public void ejbStore(){
    
}
 
源代码18 项目: tomee   文件: SecondStatefulInterceptedBean.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, Thread.currentThread().getStackTrace()[4].getMethodName());
    setContextData(ctxData);
}
 
源代码19 项目: tomee   文件: StatefulInterceptedBean.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}
 
源代码20 项目: tomee   文件: ThirdStatefulInterceptedBean.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}
 
源代码21 项目: tomee   文件: DefaultInterceptor.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void defaultInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "defaultInterceptorPrePassivate");
    ctx.proceed();
}
 
源代码22 项目: tomee   文件: BasicStatefulInterceptedBean.java
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}