/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }
/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }
/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }
/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }
/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }
/** * Note that {@link CreationalContext#release()} is not invoked within this method. * * @param event * @param receiver * @param creationalContext */ protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext) { try { preNotify(event, receiver); // As we are working with the contextual instance, we may not have the // actual object, but a container proxy (e.g. EJB) notificationStrategy.invoke(receiver, observerMethod, event, beanManager, creationalContext); } finally { postNotify(event, receiver); } }