Permalink
Browse files

Add Beans/BeansLocal#fireEvent()

  • Loading branch information...
BalusC committed Dec 30, 2015
1 parent 3f0a8f8 commit eef138e4a3e37b8d2086e87a80bca94bdf1f56a2
Showing with 19 additions and 0 deletions.
  1. +11 −0 src/main/java/org/omnifaces/util/Beans.java
  2. +8 −0 src/main/java/org/omnifaces/util/BeansLocal.java
@@ -250,4 +250,15 @@ public static InjectionPoint getCurrentInjectionPoint(CreationalContext<?> creat
return null;
}
/**
* Fires the given CDI event, optionally with the given qualifiers.
* @param event The event object.
* @param qualifiers The event qualifiers, if any.
* @since 2.3
* @see BeanManager#fireEvent(Object, Annotation...)
*/
public static void fireEvent(Object event, Annotation... qualifiers) {
BeansLocal.fireEvent(getManager(), event, qualifiers);
}
}
@@ -217,4 +217,12 @@ public static InjectionPoint getCurrentInjectionPoint(BeanManager beanManager, C
);
}
/**
* {@inheritDoc}
* @see Beans#fireEvent(Object, Annotation...)
*/
public static void fireEvent(BeanManager beanManager, Object event, Annotation... qualifiers) {
beanManager.fireEvent(event, qualifiers);
}
}

0 comments on commit eef138e

Please sign in to comment.