org.jboss.weld.bootstrap.events
Class ProcessObserverMethodImpl<X,T>

java.lang.Object
  extended by org.jboss.weld.bootstrap.events.AbstractContainerEvent
      extended by org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent
          extended by org.jboss.weld.bootstrap.events.ProcessObserverMethodImpl<X,T>
All Implemented Interfaces:
javax.enterprise.inject.spi.ProcessObserverMethod<X,T>

public class ProcessObserverMethodImpl<X,T>
extends AbstractDefinitionContainerEvent
implements javax.enterprise.inject.spi.ProcessObserverMethod<X,T>

Implementation of the event used to notify observers for each observer method that is added.

Author:
David Allen

Field Summary
 
Fields inherited from class org.jboss.weld.bootstrap.events.AbstractContainerEvent
EMPTY_TYPE_ARRAY
 
Constructor Summary
ProcessObserverMethodImpl(BeanManagerImpl beanManager, javax.enterprise.inject.spi.AnnotatedMethod<X> beanMethod, ObserverMethodImpl<X,T> observerMethod)
           
 
Method Summary
 void addDefinitionError(java.lang.Throwable t)
           
static
<X,T> void
fire(BeanManagerImpl beanManager, ObserverMethodImpl<X,T> observer)
           
 javax.enterprise.inject.spi.AnnotatedMethod<X> getAnnotatedMethod()
           
 java.util.List<java.lang.Throwable> getDefinitionErrors()
           
 javax.enterprise.inject.spi.ObserverMethod<X,T> getObserverMethod()
           
 
Methods inherited from class org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent
fire
 
Methods inherited from class org.jboss.weld.bootstrap.events.AbstractContainerEvent
getBeanManager, getEmptyTypeArray, getErrors, getRawType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessObserverMethodImpl

public ProcessObserverMethodImpl(BeanManagerImpl beanManager,
                                 javax.enterprise.inject.spi.AnnotatedMethod<X> beanMethod,
                                 ObserverMethodImpl<X,T> observerMethod)
Method Detail

fire

public static <X,T> void fire(BeanManagerImpl beanManager,
                              ObserverMethodImpl<X,T> observer)

addDefinitionError

public void addDefinitionError(java.lang.Throwable t)
Specified by:
addDefinitionError in interface javax.enterprise.inject.spi.ProcessObserverMethod<X,T>

getAnnotatedMethod

public javax.enterprise.inject.spi.AnnotatedMethod<X> getAnnotatedMethod()
Specified by:
getAnnotatedMethod in interface javax.enterprise.inject.spi.ProcessObserverMethod<X,T>

getObserverMethod

public javax.enterprise.inject.spi.ObserverMethod<X,T> getObserverMethod()
Specified by:
getObserverMethod in interface javax.enterprise.inject.spi.ProcessObserverMethod<X,T>

getDefinitionErrors

public java.util.List<java.lang.Throwable> getDefinitionErrors()


Copyright © 2008-2009 Seam Framework. All Rights Reserved.