public class Oddjob.OddjobRoot extends java.lang.Object implements Stateful, ServiceProvider, ConfigurationOwner
Modifier and Type | Method and Description |
---|---|
void |
addOwnerStateListener(OwnerStateListener listener)
Add a listener.
|
void |
addStateListener(StateListener listener)
Add a job state listener.
|
java.lang.Object[] |
getArgs() |
java.lang.ClassLoader |
getClassLoader() |
java.io.File |
getDir() |
java.io.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.
|
SerializableDesignFactory |
rootDesignFactory()
Get the design factory for the configuration.
|
ArooaElement |
rootElement()
Get the root element.
|
void |
setJob(java.lang.Object child) |
public void addOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
addOwnerStateListener
in interface ConfigurationOwner
public void removeOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
removeOwnerStateListener
in interface ConfigurationOwner
public SerializableDesignFactory rootDesignFactory()
ConfigurationOwner
Note that this is a SerializableDesignFactory
so that
this interface can be represented remotely.
rootDesignFactory
in interface ConfigurationOwner
ConfigurationSession
is available.public ArooaElement rootElement()
ConfigurationOwner
rootElement
in interface ConfigurationOwner
ConfigurationSession
is available.public ConfigurationSession provideConfigurationSession()
ConfigurationOwner
ConfigurationSession
.provideConfigurationSession
in interface ConfigurationOwner
ConfigurationSession
. May be null if no session is available.public void setJob(java.lang.Object child)
public void addStateListener(StateListener listener)
Stateful
addStateListener
in interface Stateful
listener
- The listener.public void removeStateListener(StateListener listener)
Stateful
removeStateListener
in interface Stateful
listener
- The listener.public StateEvent lastStateEvent()
Stateful
lastStateEvent
in interface Stateful
public java.io.File getFile()
public java.io.File getDir()
public java.lang.Object[] getArgs()
public Services getServices()
ServiceProvider
getServices
in interface ServiceProvider
public java.lang.ClassLoader getClassLoader()