org.oddjob
Class Oddjob.OddjobRoot

java.lang.Object
  extended by org.oddjob.Oddjob.OddjobRoot
All Implemented Interfaces:
ConfigurationOwner, ServiceProvider, Stateful
Enclosing class:
Oddjob

public class Oddjob.OddjobRoot
extends Object
implements Stateful, ServiceProvider, ConfigurationOwner

The object which is the Oddjob root.


Method Summary
 void addOwnerStateListener(OwnerStateListener listener)
          Add a listener.
 void addStateListener(StateListener listener)
          Add a job state listener.
 Object[] getArgs()
           
 ClassLoader getClassLoader()
           
 File getDir()
           
 File getFile()
           
 Services getServices()
          Provider the services.
 StateEvent lastStateEvent()
          Get the last state event.
 ConfigurationSession provideConfigurationSession()
          Provide a ConfigurationSession.
 void removeOwnerStateListener(OwnerStateListener listener)
          Remove a listener.
 void removeStateListener(StateListener listener)
          Remove a job state listener.
 DesignFactory rootDesignFactory()
          Get the design factory for the configuration.
 ArooaElement rootElement()
          Get the root element.
 void setJob(Object child)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addOwnerStateListener

public void addOwnerStateListener(OwnerStateListener listener)
Description copied from interface: ConfigurationOwner
Add a listener.

Specified by:
addOwnerStateListener in interface ConfigurationOwner

removeOwnerStateListener

public void removeOwnerStateListener(OwnerStateListener listener)
Description copied from interface: ConfigurationOwner
Remove a listener.

Specified by:
removeOwnerStateListener in interface ConfigurationOwner

rootDesignFactory

public DesignFactory rootDesignFactory()
Description copied from interface: ConfigurationOwner
Get the design factory for the configuration. If this is null the Oddjob Explorer won't show a DesignInside action.

Specified by:
rootDesignFactory in interface ConfigurationOwner
Returns:
A DesignFactory. Must not be null if a ConfigurationSession is available.

rootElement

public ArooaElement rootElement()
Description copied from interface: ConfigurationOwner
Get the root element.

Specified by:
rootElement in interface ConfigurationOwner
Returns:
The root element of the configuration. Must not be null if a ConfiguraitonSession is available.

provideConfigurationSession

public ConfigurationSession provideConfigurationSession()
Description copied from interface: ConfigurationOwner
Provide a ConfigurationSession.

Specified by:
provideConfigurationSession in interface ConfigurationOwner
Returns:
A ConfigurationSession. My be null if no session is available.

setJob

public void setJob(Object child)

addStateListener

public void addStateListener(StateListener listener)
Description copied from interface: Stateful
Add a job state listener.

Specified by:
addStateListener in interface Stateful
Parameters:
listener - The listener.

removeStateListener

public void removeStateListener(StateListener listener)
Description copied from interface: Stateful
Remove a job state listener.

Specified by:
removeStateListener in interface Stateful
Parameters:
listener - The listener.

lastStateEvent

public StateEvent lastStateEvent()
Description copied from interface: Stateful
Get the last state event.

Specified by:
lastStateEvent in interface Stateful
Returns:
The last State Event

getFile

public File getFile()

getDir

public File getDir()

getArgs

public Object[] getArgs()
Returns:
Returns the args.

getServices

public Services getServices()
Description copied from interface: ServiceProvider
Provider the services.

Specified by:
getServices in interface ServiceProvider
Returns:
The services. May be null.

getClassLoader

public ClassLoader getClassLoader()