org.jboss.weld.event
Class ObserverFactory

java.lang.Object
  extended by org.jboss.weld.event.ObserverFactory

public class ObserverFactory
extends Object

Bound factory class that produces implicit observers for observer methods.

Author:
David Allen

Constructor Summary
ObserverFactory()
           
 
Method Summary
static
<T,X> ObserverMethodImpl<T,X>
create(WeldMethod<T,? super X> method, RIBean<X> declaringBean, BeanManagerImpl manager)
          Creates an observer
static javax.enterprise.event.TransactionPhase getTransactionalPhase(WeldMethod<?,?> observer)
          Tests an observer method to see if it is transactional.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObserverFactory

public ObserverFactory()
Method Detail

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 abstraction
declaringBean - The declaring bean
manager - 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.