org.oddjob.scheduling
Class OddjobServicesBean

java.lang.Object
  extended by org.oddjob.scheduling.OddjobServicesBean
All Implemented Interfaces:
Services, OddjobServices

public class OddjobServicesBean
extends Object
implements OddjobServices

Bean implementations of OddjobServices

Author:
rob

Field Summary
 
Fields inherited from interface org.oddjob.OddjobServices
CLASSLOADER_SERVICE, INPUT_HANDLER, ODDJOB_SERVICES, POOL_EXECUTOR, SCHEDULED_EXECUTOR
 
Constructor Summary
OddjobServicesBean()
           
 
Method Summary
 ClassLoader getClassLoader()
           
 InputHandler getInputHandler()
           
 OddjobExecutors getOddjobExecutors()
           
 Object getService(String serviceName)
          Provide the service for the given name.
 String serviceNameFor(Class<?> theClass, String flavour)
          If these services can provide a service of the given class then a name that identifies the service is provided.
 void setClassLoader(ClassLoader classLoader)
           
 void setInputHandler(InputHandler inputHandler)
           
 void setOddjobExecutors(OddjobExecutors oddjobExecutors)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OddjobServicesBean

public OddjobServicesBean()
Method Detail

getService

public Object getService(String serviceName)
Description copied from interface: Services
Provide the service for the given name.

Specified by:
getService in interface Services
Returns:
A service for the name.

serviceNameFor

public String serviceNameFor(Class<?> theClass,
                             String flavour)
Description copied from interface: Services
If these services can provide a service of the given class then a name that identifies the service is provided.

Specified by:
serviceNameFor in interface Services
Parameters:
theClass - The type of service.
flavour - An optional flavour. May be null.
Returns:
A service name, or null if none can be provided.

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface OddjobServices

setClassLoader

public void setClassLoader(ClassLoader classLoader)

getOddjobExecutors

public OddjobExecutors getOddjobExecutors()
Specified by:
getOddjobExecutors in interface OddjobServices

setOddjobExecutors

public void setOddjobExecutors(OddjobExecutors oddjobExecutors)

getInputHandler

public InputHandler getInputHandler()
Specified by:
getInputHandler in interface OddjobServices

setInputHandler

public void setInputHandler(InputHandler inputHandler)

toString

public String toString()
Overrides:
toString in class Object