@XmlElement(name = "after-completion-method") public void setAfterCompletionMethod(final NamedMethod afterCompletionMethod) { this.afterCompletionMethod = afterCompletionMethod; getAfterCompletion().clear(); getAfterCompletion().add(new LifecycleCallback(afterCompletionMethod)); }
@XmlElement(name = "after-completion-method") public void setAfterCompletionMethod(final NamedMethod afterCompletionMethod) { this.afterCompletionMethod = afterCompletionMethod; getAfterCompletion().clear(); getAfterCompletion().add(new LifecycleCallback(afterCompletionMethod)); }
public void addAfterCompletion(final String method) { assert ejbClass != null : "Set the ejbClass before calling this method"; getAfterCompletion().add(new LifecycleCallback(ejbClass, method)); }
public void addAfterCompletion(final String method) { assert ejbClass != null : "Set the ejbClass before calling this method"; getAfterCompletion().add(new LifecycleCallback(ejbClass, method)); }
sessionBean.getAfterBegin().add(new LifecycleCallback(clazz.getMethod("afterBegin"))); sessionBean.getBeforeCompletion().add(new LifecycleCallback(clazz.getMethod("beforeCompletion"))); sessionBean.getAfterCompletion().add(new LifecycleCallback(clazz.getMethod("afterCompletion", boolean.class))); } catch (final NoSuchMethodException e) {
sessionBean.getAfterBegin().add(new LifecycleCallback(clazz.getMethod("afterBegin"))); sessionBean.getBeforeCompletion().add(new LifecycleCallback(clazz.getMethod("beforeCompletion"))); sessionBean.getAfterCompletion().add(new LifecycleCallback(clazz.getMethod("afterCompletion", boolean.class))); } catch (final NoSuchMethodException e) {
for (final LifecycleCallback callback : session.getAfterCompletion()) { checkCallback(ejbClass, "AfterCompletion", callback, bean, boolean.class); for (final LifecycleCallback callback : session.getAfterCompletion()) { ignoredMethodAnnotation("AfterCompletion", bean, bean.getEjbClass(), callback.getMethodName(), session.getSessionType().getName());
for (final LifecycleCallback callback : session.getAfterCompletion()) { checkCallback(ejbClass, "AfterCompletion", callback, bean, boolean.class); for (final LifecycleCallback callback : session.getAfterCompletion()) { ignoredMethodAnnotation("AfterCompletion", bean, bean.getEjbClass(), callback.getMethodName(), session.getSessionType().getName());
copyCallbacks(s.getAfterCompletion(), stateful.afterCompletion);
copyCallbacks(s.getAfterCompletion(), stateful.afterCompletion);