net.sf.xbus.application
Class ApplicationFactory

java.lang.Object
  extended by net.sf.xbus.application.ApplicationFactory

public class ApplicationFactory
extends java.lang.Object

The class ApplicationFactory is used to dynamically create an application object and calls a method of this application object, which processes the incoming Message.

It implements the Factory Design-Pattern.

Configuration:

Chapter Section Key Content
ApplicationFactory call.getSource().call.getFunction() Class Name of the class that should be created.
ApplicationFactory call.getSource().call.getFunction() Method Name of the method that should process the call.


Constructor Summary
ApplicationFactory()
           
 
Method Summary
static void callApplication(Message call)
          Creates an application object and calls a method of this application object, which processes the incoming Message object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationFactory

public ApplicationFactory()
Method Detail

callApplication

public static void callApplication(Message call)
                            throws XException
Creates an application object and calls a method of this application object, which processes the incoming Message object.

Parameters:
call - the incoming message
Throws:
XException - in case of problems in accessing the configuration, in routing, in object instatiation or message processing