org.jboss.weld.event
Class ObserverFactory
java.lang.Object
org.jboss.weld.event.ObserverFactory
public class ObserverFactory
- extends Object
Bound factory class that produces implicit observers for observer methods.
- Author:
- David Allen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObserverFactory
public ObserverFactory()
create
public static <T,X> ObserverMethodImpl<T,X> create(WeldMethod<T,? super X> method,
RIBean<X> declaringBean,
BeanManagerImpl manager)
- Creates an observer
- Parameters:
method
- The observer method abstractiondeclaringBean
- The declaring beanmanager
- The Bean manager
- Returns:
- An observer implementation built from the method abstraction
getTransactionalPhase
public static javax.enterprise.event.TransactionPhase getTransactionalPhase(WeldMethod<?,?> observer)
- Tests an observer method to see if it is transactional.
- Parameters:
observer
- The observer method
- Returns:
- true if the observer method is annotated as transactional
Copyright © 2013 Seam Framework. All Rights Reserved.