se.ericsson.eto.norarc.javaframe
Class SimpleRouterMediator
java.lang.Object
se.ericsson.eto.norarc.javaframe.Mediator
se.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
Fields inherited from class se.ericsson.eto.norarc.javaframe.Mediator |
address |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mediatorList
public java.util.LinkedList mediatorList
SimpleRouterMediator
public SimpleRouterMediator()
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