cz.cuni.pogamut.Parser
Class RemoteParserServer.MediatorStorage

java.lang.Object
  extended by cz.cuni.pogamut.Parser.RemoteParserServer.MediatorStorage
All Implemented Interfaces:
FlagListener<java.lang.Boolean>, java.util.EventListener
Enclosing class:
RemoteParserServer

private class RemoteParserServer.MediatorStorage
extends java.lang.Object
implements FlagListener<java.lang.Boolean>


Field Summary
 java.net.InetAddress address
           
 Mediator mediator
           
 
Constructor Summary
RemoteParserServer.MediatorStorage(Mediator mediator, java.net.InetAddress address)
           
 
Method Summary
 void flagChanged(java.lang.Boolean changedValue, int listenerParam)
          When registering the flag you may additionally specify listener parameter, if you do so - your listener will be called with that parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mediator

public Mediator mediator

address

public java.net.InetAddress address
Constructor Detail

RemoteParserServer.MediatorStorage

public RemoteParserServer.MediatorStorage(Mediator mediator,
                                          java.net.InetAddress address)
Method Detail

flagChanged

public void flagChanged(java.lang.Boolean changedValue,
                        int listenerParam)
Description copied from interface: FlagListener
When registering the flag you may additionally specify listener parameter, if you do so - your listener will be called with that parameter. Note that we purposefully denying OOP paradigm here. 'listenerParam' will allow you to implement this interface only once for more flags at the cost of switch(listenerParam){} ... but imagine that you have 4 objects which all register 4 different flag listeners (it would be a bit messy, wouldn't it).

Specified by:
flagChanged in interface FlagListener<java.lang.Boolean>