returnthe annoation type this annotation handler is handling return PrePassivate.class;
return PrePassivate.class;
Method annotatedMethod = (Method) ainfo.getAnnotatedElement(); LifecycleCallbackDescriptor prePassivate = new LifecycleCallbackDescriptor(); prePassivate.setLifecycleCallbackClass(annotatedMethod.getDeclaringClass().getName()); prePassivate.setLifecycleCallbackMethod(annotatedMethod.getName()); return prePassivate;
returnan array of annotation types this annotation handler would require to be processed (if present) before it processes it's own annotation type. return getEjbAnnotationTypes();
return getEjbAnnotationTypes();
return true;
for(EjbContext next : ejbContexts) { EjbSessionDescriptor ejbSessionDescriptor = (EjbSessionDescriptor) next.getDescriptor(); ejbSessionDescriptor.addPrePassivateDescriptor( getPrePassivateDescriptor(ainfo)); } return getDefaultProcessedResult();
EjbInterceptor ejbInterceptor = ejbInterceptorContext.getDescriptor(); ejbInterceptor.addPrePassivateDescriptor( getPrePassivateDescriptor(ainfo)); return getDefaultProcessedResult();