de.dante.extex.interpreter.observer.stop
Class StopObserverList

java.lang.Object
  extended byde.dante.extex.interpreter.observer.stop.StopObserverList
All Implemented Interfaces:
StopObserver

public final class StopObserverList
extends java.lang.Object
implements StopObserver

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

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

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

Constructor Detail

StopObserverList

public StopObserverList()
Method Detail

register

public static StopObserver register(StopObserver list,
                                    StopObserver 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(StopObserver observer)
Add an observer to the list.

Parameters:
observer - the observer to add to the list

update

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

Specified by:
update in interface StopObserver
Parameters:
interpreter - the interpreter to be stopped
See Also:
LoadObserver.update( de.dante.extex.interpreter.context.Context)