net.sf.xbus.technical
Class ReceiverFactory

java.lang.Object
  extended by net.sf.xbus.technical.ReceiverFactory

public class ReceiverFactory
extends java.lang.Object

The class ReceiverFactory is used to dynamically create receivers to receive messages from neighbor-systems. Both ReceiverThreads and ReceiverSingles can be created.

It implements the Factory-Design-Pattern.


Constructor Summary
ReceiverFactory()
           
 
Method Summary
static ReceiverSingleInterface createReceiverSingle(java.lang.String receiverName)
          The appropriate ReceiverSingle for the given system will be created.
static ReceiverThreadBase createReceiverThread(java.lang.String receiverName, java.lang.String system)
          The appropriate ReceiverThread for the given system will be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverFactory

public ReceiverFactory()
Method Detail

createReceiverThread

public static ReceiverThreadBase createReceiverThread(java.lang.String receiverName,
                                                      java.lang.String system)
                                               throws XException
The appropriate ReceiverThread for the given system will be created.

Throws:
XException

createReceiverSingle

public static ReceiverSingleInterface createReceiverSingle(java.lang.String receiverName)
                                                    throws XException
The appropriate ReceiverSingle for the given system will be created.

Throws:
XException