de.dante.extex.interpreter.observer.load
Class LoadObserverList

java.lang.Object
  extended byde.dante.extex.interpreter.observer.load.LoadObserverList
All Implemented Interfaces:
LoadObserver

public final class LoadObserverList
extends java.lang.Object
implements LoadObserver

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

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

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

Constructor Detail

LoadObserverList

public LoadObserverList()
Method Detail

register

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

Parameters:
observer - the observer to add to the list

update

public void update(Context context)
            throws InterpreterException
Invoke all observers on the list to inform them of the format load operation.

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