de.dante.extex.interpreter.context.observer.load
Interface LoadedObservable

All Known Implementing Classes:
ContextImpl

public interface LoadedObservable

This interface describes the possibility to register an observer for an load event.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 void receiveLoad(TokenSource source)
          Receive a notification about a load event.
 void registerLoadObserver(LoadedObserver observer)
          Register an observer for load events.
 void unregisterLoadObserver(LoadedObserver observer)
          Remove a registered observer for load events.
 

Method Detail

registerLoadObserver

public void registerLoadObserver(LoadedObserver observer)
Register an observer for load events. Code change events are triggered when the context is loaded.

Parameters:
observer - the observer to receive the events

unregisterLoadObserver

public void unregisterLoadObserver(LoadedObserver observer)
Remove a registered observer for load events. Code change events are triggered when the context is loaded.

Parameters:
observer - the observer to receive the events

receiveLoad

public void receiveLoad(TokenSource source)
                 throws InterpreterException
Receive a notification about a load event.

Parameters:
source - the token source
Throws:
InterpreterException - in case of an error