de.dante.extex.interpreter.observer.start
Class StartObserverList

java.lang.Object
  extended byde.dante.extex.interpreter.observer.start.StartObserverList
All Implemented Interfaces:
StartObserver

public final class StartObserverList
extends java.lang.Object
implements StartObserver

This class provides a type-safe list of observers for the start event.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Constructor Summary
StartObserverList()
           
 
Method Summary
 void add(StartObserver observer)
          Add an observer to the list.
static StartObserver register(StartObserver list, StartObserver observer)
          Take a list and add an observer.
 void update(Interpreter interpreter)
          Invoke all observers on the list to inform them of the start operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartObserverList

public StartObserverList()
Method Detail

register

public static StartObserver register(StartObserver list,
                                     StartObserver observer)
Take a list and add an observer. If the list is null then a new one is created.

Parameters:
list - the input list or null
observer - the observer to add
Returns:
the input list or a new one with the observer added

add

public void add(StartObserver observer)
Add an observer to the list.

Parameters:
observer - the observer to add to the list

update

public void update(Interpreter interpreter)
            throws InterpreterException
Invoke all observers on the list to inform them of the start operation.

Specified by:
update in interface StartObserver
Parameters:
interpreter - the interpreter to be started
Throws:
InterpreterException - in case of an error
See Also:
LoadObserver.update( de.dante.extex.interpreter.context.Context)