com.caucho.config.event
Class EventImpl<T>

java.lang.Object
  extended by com.caucho.config.event.EventImpl<T>
All Implemented Interfaces:
java.io.Serializable, Event<T>

@Module
public class EventImpl<T>
extends java.lang.Object
implements Event<T>, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
EventImpl(BeanManager manager, java.lang.reflect.Type type, java.lang.annotation.Annotation[] bindings)
           
 
Method Summary
 void fire(T event)
          Fires an event with the Event object's bindings.
 Event<T> select(java.lang.annotation.Annotation... bindings)
          Adds the current set of qualifiers, returning a new Event object.
<U extends T>
Event<U>
select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
          Adds the current set of bindings, returning a new Event object.
<U extends T>
Event<U>
select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
          Adds the current set of qualifiers, returning a new Event object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventImpl

public EventImpl(BeanManager manager,
                 java.lang.reflect.Type type,
                 java.lang.annotation.Annotation[] bindings)
Method Detail

fire

public void fire(T event)
Description copied from interface: Event
Fires an event with the Event object's bindings.

Specified by:
fire in interface Event<T>
Parameters:
event - the event to fire

select

public Event<T> select(java.lang.annotation.Annotation... bindings)
Description copied from interface: Event
Adds the current set of qualifiers, returning a new Event object.

Specified by:
select in interface Event<T>
Parameters:
bindings - the additional qualifiers

select

public <U extends T> Event<U> select(java.lang.Class<U> subtype,
                                     java.lang.annotation.Annotation... bindings)
Description copied from interface: Event
Adds the current set of bindings, returning a new Event object.

Specified by:
select in interface Event<T>
Parameters:
subtype - the restricted type

select

public <U extends T> Event<U> select(TypeLiteral<U> subtype,
                                     java.lang.annotation.Annotation... bindings)
Description copied from interface: Event
Adds the current set of qualifiers, returning a new Event object.

Specified by:
select in interface Event<T>
Parameters:
subtype - the restricted type
bindings - the additional qualifiers

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object