Package org.oddjob
Class Oddjob.OddjobRoot
java.lang.Object
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
Modifier and TypeMethodDescriptionvoidaddOwnerStateListener(OwnerStateListener listener) Add a listener.voidaddStateListener(StateListener listener) Add a job state listener.Object[]getArgs()getDir()getFile()Provider the services.Get the last state event.Provide aConfigurationSession.voidremoveOwnerStateListener(OwnerStateListener listener) Remove a listener.voidremoveStateListener(StateListener listener) Remove a job state listener.Get the design factory for the configuration.Get the root element.void
-
Method Details
-
addOwnerStateListener
Description copied from interface:ConfigurationOwnerAdd a listener.- Specified by:
addOwnerStateListenerin interfaceConfigurationOwner- Parameters:
listener-
-
removeOwnerStateListener
Description copied from interface:ConfigurationOwnerRemove a listener.- Specified by:
removeOwnerStateListenerin interfaceConfigurationOwner- Parameters:
listener-
-
rootDesignFactory
Description copied from interface:ConfigurationOwnerGet the design factory for the configuration. If this is null the Oddjob Explorer won't show a DesignInside action.Note that this is a
SerializableDesignFactoryso that this interface can be represented remotely.- Specified by:
rootDesignFactoryin interfaceConfigurationOwner- Returns:
- A DesignFactory. Must not be null if a
ConfigurationSessionis available.
-
rootElement
Description copied from interface:ConfigurationOwnerGet the root element.- Specified by:
rootElementin interfaceConfigurationOwner- Returns:
- The root element of the configuration. Must not be null if
a
ConfigurationSessionis available.
-
provideConfigurationSession
Description copied from interface:ConfigurationOwnerProvide aConfigurationSession.- Specified by:
provideConfigurationSessionin interfaceConfigurationOwner- Returns:
- A
ConfigurationSession. May be null if no session is available.
-
setJob
-
addStateListener
Description copied from interface:StatefulAdd a job state listener.- Specified by:
addStateListenerin interfaceStateful- Parameters:
listener- The listener.
-
removeStateListener
Description copied from interface:StatefulRemove a job state listener.- Specified by:
removeStateListenerin interfaceStateful- Parameters:
listener- The listener.
-
lastStateEvent
Description copied from interface:StatefulGet the last state event.- Specified by:
lastStateEventin interfaceStateful- Returns:
- The last State Event
-
getFile
-
getDir
-
getArgs
- Returns:
- Returns the args.
-
getServices
Description copied from interface:ServiceProviderProvider the services.- Specified by:
getServicesin interfaceServiceProvider- Returns:
- The services. May be null.
-
getClassLoader
-