ie.deri.wsmx.mediation
Class MediatorFactory

java.lang.Object
  extended byie.deri.wsmx.mediation.MediatorFactory

public abstract class MediatorFactory
extends java.lang.Object

This class offers the factory method as a way of creating mediator objects. The factory method is a parameterized one and according to this parameter returns different types of mediators.


Constructor Summary
MediatorFactory()
           
 
Method Summary
static Mediator createMediator()
          Provides a dummy mediator.
static Mediator createMediator(int payloadType)
          Return a mediator according to the specified payloadType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediatorFactory

public MediatorFactory()
Method Detail

createMediator

public static Mediator createMediator()
Provides a dummy mediator.

Returns:
a dummy mediator

createMediator

public static Mediator createMediator(int payloadType)
Return a mediator according to the specified payloadType

Parameters:
payloadType - specifies the payload type. The allowed values are: CONSTANTS.FLORA_PAYLOAD
Returns:
the corresponding mediator