org.mule
Class MuleServer

java.lang.Object
  extended byorg.mule.MuleServer
All Implemented Interfaces:
java.lang.Runnable

public class MuleServer
extends java.lang.Object
implements java.lang.Runnable

MuleServer is a simple application that represents a local Mule Server deamon. It is initalised with a mule-configuration.xml file.

Version:
$Revision: 1.4 $
Author:
Ross Mason

Field Summary
static java.lang.String DEFAULT_CONFIGURATION
           
 
Constructor Summary
MuleServer()
          default constructor
MuleServer(java.lang.String configResources)
           
 
Method Summary
static ConfigurationBuilder getConfigBuilder()
          gets the configuration builder used by this server.
 java.lang.String getConfigurationResources()
          Getter for property messengerURL.
protected  void initialize()
          Initializes this daemon.
static void main(java.lang.String[] args)
          application entry point
 void run()
          Overloaded the [main] thread run method.
static void setConfigBuilder(ConfigurationBuilder configBuilder)
          sets the configuration builder to use for this server.
 void setConfigurationResources(java.lang.String configurationResources)
          Setter for property messengerURL.
 void start(boolean ownThread)
          Start the mule server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIGURATION

public static final java.lang.String DEFAULT_CONFIGURATION
See Also:
Constant Field Values
Constructor Detail

MuleServer

public MuleServer()
default constructor


MuleServer

public MuleServer(java.lang.String configResources)
Method Detail

main

public static void main(java.lang.String[] args)
application entry point


start

public void start(boolean ownThread)
Start the mule server

Parameters:
ownThread - determines if the server will run in its own daemon thread or the current calling thread

run

public void run()
Overloaded the [main] thread run method. This calls initialise and shuts down if an exception occurs

Specified by:
run in interface java.lang.Runnable

getConfigurationResources

public java.lang.String getConfigurationResources()
Getter for property messengerURL.

Returns:
Value of property messengerURL.

setConfigurationResources

public void setConfigurationResources(java.lang.String configurationResources)
Setter for property messengerURL.

Parameters:
configurationResources - New value of property configurationResources.

getConfigBuilder

public static ConfigurationBuilder getConfigBuilder()
gets the configuration builder used by this server. Note that if a builder is not set and the server's start method is call the default is an instance of MuleXmlConfigurationBuilder.

Returns:
a configuration builder or null if one has not been set

setConfigBuilder

public static void setConfigBuilder(ConfigurationBuilder configBuilder)
sets the configuration builder to use for this server.

Parameters:
configBuilder - the configuration builder instance to use

initialize

protected void initialize()
                   throws java.lang.Exception
Initializes this daemon. Derived classes could add some extra behaviour if they wish.

Throws:
java.lang.Exception


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.