org.jboss.weld.event
Class ObserverFactory
java.lang.Object
org.jboss.weld.event.ObserverFactory
public class ObserverFactory
- extends java.lang.Object
Basic 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 <X,T> ObserverMethodImpl<X,T> create(WeldMethod<T,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 © 2008-2009 Seam Framework. All Rights Reserved.