Class DefaultEventStudio

java.lang.Object
org.pdfsam.eventstudio.DefaultEventStudio
All Implemented Interfaces:
EventStudio

public class DefaultEventStudio extends Object implements EventStudio
Default implementation of EventStudio. It doesn't enforce a Singleton pattern, and it's up to the user to decide how to use it and how many EventStudio the application needs. A singleton implementation with lazy initialization is provided with StaticStudio where the typical usage is:
 
 import static org.eventstudio.StaticStudio.eventStudio;
 
 public class Foo{
     void doSomethingAndNotify(){
        .....
        eventStudio.broadcast(new ImFinished(), "station");
     } 
 }
 
 

Hidden Station: The hidden station is a pre-built station with "hidden.station" name that is used to hide the station abstraction. Helper method are provided by DefaultEventStudio where the station name parameter is missing from the parameters list and the HIDDEN_STATION is used, providing a more traditional event bus pub/sub pattern.

Author:
Andrea Vacondio