org.jboss.webbeans.event
Class EventImpl<T>

java.lang.Object
  extended by org.jboss.webbeans.FacadeImpl<T>
      extended by org.jboss.webbeans.event.EventImpl<T>
Type Parameters:
T - The type of event being wrapped
All Implemented Interfaces:
Event<T>

public class EventImpl<T>
extends FacadeImpl<T>
implements Event<T>

Implementation of the Event interface

Author:
David Allen
See Also:
Event

Field Summary
 
Fields inherited from class org.jboss.webbeans.FacadeImpl
bindingTypes, manager, type
 
Constructor Summary
EventImpl(java.lang.Class<T> eventType, Manager manager, java.lang.annotation.Annotation... bindingTypes)
          Constructor
 
Method Summary
 void fire(T event, java.lang.annotation.Annotation... bindingTypes)
          Fires an event
protected  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
          Gets a set of annotation classes to ignore
 void observe(Observer<T> observer, java.lang.annotation.Annotation... bindingTypes)
          Registers an observer
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class org.jboss.webbeans.FacadeImpl
mergeBindings, mergeBindingTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventImpl

public EventImpl(java.lang.Class<T> eventType,
                 Manager manager,
                 java.lang.annotation.Annotation... bindingTypes)
Constructor

Parameters:
eventType - The event type
manager - The Web Beans manager
bindingTypes - The binding types
Method Detail

fire

public void fire(T event,
                 java.lang.annotation.Annotation... bindingTypes)
Fires an event

Specified by:
fire in interface Event<T>
Parameters:
event - The event object
bindingTypes - Additional binding types

observe

public void observe(Observer<T> observer,
                    java.lang.annotation.Annotation... bindingTypes)
Registers an observer

Specified by:
observe in interface Event<T>
Parameters:
observer -
bindingTypes - Additional binding types

toString

public java.lang.String toString()
Description copied from class: FacadeImpl
Gets a string representation

Overrides:
toString in class FacadeImpl<T>
Returns:
A string representation

getFilteredAnnotations

protected java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
Description copied from class: FacadeImpl
Gets a set of annotation classes to ignore

Specified by:
getFilteredAnnotations in class FacadeImpl<T>
Returns:
A set of annotation classes to ignore
See Also:
FacadeImpl.getFilteredAnnotations()


Copyright © 2008. All Rights Reserved.