com.admc.jamama.server
Class MX4JHttpAdaptorConfiguror

java.lang.Object
  extended bycom.admc.jamama.server.MX4JHttpAdaptorConfiguror
All Implemented Interfaces:
Configurable, java.lang.Runnable, Server, ThirdPartyConfiguror

public class MX4JHttpAdaptorConfiguror
extends java.lang.Object
implements ThirdPartyConfiguror, Server

A wrapper so that a mx4j.tools.adaptor.http.HttpAdaptor can be configured and stopped and started by the main Jamama class.

Version:
$Revision: 1.2 $
Author:
Blaine Simpson
See Also:
mx4j.tools.adaptor.http.HttpAdaptor, ThirdPartyConfiguror

Constructor Summary
MX4JHttpAdaptorConfiguror()
           
 
Method Summary
 void configure(java.lang.Object o)
          Initialize the object's state with information in the given Jaxb object.
 java.lang.Object getConfig()
          Returns the Jaxb object used to configure this.
 java.lang.String getName()
          Name which Jamama config file uses to identify this object instance.
 java.lang.Object getObject()
          Returns a non-Configurable class so that Jamama can configure and manage it.
 boolean getRun()
          Say whether main thread of this Server is running.
 void restoreRunState()
          Start up server iff server is configured to start automatically.
 void run()
           
 void setRun(boolean doRun)
          Start or stop the main thread in this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MX4JHttpAdaptorConfiguror

public MX4JHttpAdaptorConfiguror()
Method Detail

getRun

public boolean getRun()
Description copied from interface: Server
Say whether main thread of this Server is running.

Specified by:
getRun in interface Server
Returns:
Indication of whether Server main thread is running.
See Also:
Server

setRun

public void setRun(boolean doRun)
Description copied from interface: Server
Start or stop the main thread in this object.

Specified by:
setRun in interface Server
Parameters:
doRun - true to start up thread; false to stop it
See Also:
Server

restoreRunState

public void restoreRunState()
Description copied from interface: Server
Start up server iff server is configured to start automatically.

Specified by:
restoreRunState in interface Server
See Also:
Server

run

public void run()
Specified by:
run in interface java.lang.Runnable

getName

public java.lang.String getName()
Description copied from interface: Configurable
Name which Jamama config file uses to identify this object instance.

Specified by:
getName in interface Configurable
See Also:
Configurable

getObject

public java.lang.Object getObject()
Description copied from interface: ThirdPartyConfiguror
Returns a non-Configurable class so that Jamama can configure and manage it.

Specified by:
getObject in interface ThirdPartyConfiguror
See Also:
ThirdPartyConfiguror

configure

public void configure(java.lang.Object o)
Description copied from interface: Configurable
Initialize the object's state with information in the given Jaxb object.

Specified by:
configure in interface Configurable
Parameters:
o - A Jaxb object corresponding to a XML document branch.
See Also:
Configurable

getConfig

public java.lang.Object getConfig()
Description copied from interface: Configurable
Returns the Jaxb object used to configure this.

Specified by:
getConfig in interface Configurable