se.ericsson.eto.norarc.javaframe
Class SimpleRouterMediator

java.lang.Object
  extended byse.ericsson.eto.norarc.javaframe.Mediator
      extended byse.ericsson.eto.norarc.javaframe.SimpleRouterMediator
All Implemented Interfaces:
Addressable, java.io.Serializable
Direct Known Subclasses:
SimpleIdRouterMediator

public abstract class SimpleRouterMediator
extends Mediator

A SimpleRouterMediator is a superclass of Mediators that overrides the forward method and thus defines how the routing should go. As a default the SimpleRouterMediator has a list of Mediators to describe the potential addressing targets

See Also:
Serialized Form

Field Summary
 java.util.LinkedList mediatorList
           
 
Fields inherited from class se.ericsson.eto.norarc.javaframe.Mediator
address
 
Constructor Summary
SimpleRouterMediator()
           
 
Method Summary
 void addAddress(Addressable newMediator)
          Add another address to the list of addressing targets
abstract  void forward(Message sig)
          forward must be overridden by user application
 void removeAddress(Addressable med)
          Removes the specified {link Mediator} from the mediatorList.
 
Methods inherited from class se.ericsson.eto.norarc.javaframe.Mediator
getAddress, input, mediatorName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mediatorList

public java.util.LinkedList mediatorList
Constructor Detail

SimpleRouterMediator

public SimpleRouterMediator()
Method Detail

addAddress

public void addAddress(Addressable newMediator)
                throws java.lang.IllegalArgumentException
Add another address to the list of addressing targets

Overrides:
addAddress in class Mediator
Parameters:
newMediator - Assumed to be not null. If not, an IllegalArgumentException is thrown.
Throws:
java.lang.IllegalArgumentException

removeAddress

public void removeAddress(Addressable med)
Removes the specified {link Mediator} from the mediatorList.

Overrides:
removeAddress in class Mediator
Parameters:
med - The mediator to be removed from the mediatorList.

forward

public abstract void forward(Message sig)
forward must be overridden by user application

Specified by:
forward in interface Addressable
Overrides:
forward in class Mediator