org.enhydra.barracuda.core.event
Interface Polymorphic

All Known Implementing Classes:
HttpRequestEvent

public interface Polymorphic

This interface indicates an Event is Polymorphic, in the sense that firing it causes parent events to be fired first. For instance, if MyEvent extends PolymorphicEvent, firing MyEvent first causes a PolymorphicEvent to be fired because MyEvent _is_ a PolymorphicEvent. Kapish? This type of functionality makes it possible to install listeners on a parent event and be notified when any of the child events are fired...this is sometimes very useful. This interface has kind of the opposite meaning of the Exception interface. Events should never indicate both Exceptional and Polymorphic (and can't because both of these interfaces define describeEventChainingStrategy())


Method Summary
 String describeEventChainingStrategy()
          Describe the event chaining stategy.
 

Method Detail

describeEventChainingStrategy

public String describeEventChainingStrategy()
Describe the event chaining stategy. This method really serves to ensure that objects cannot implement BOTH Polymorphic and Exceptional (it's got to be one or the other)

Returns:
string describing the event chain strategy


Copyright © 2003 BarracudaMVC.org All Rights Reserved.