public class OddjobServicesBean extends java.lang.Object implements OddjobServices
OddjobServices
CLASSLOADER_SERVICE, INPUT_HANDLER, ODDJOB_SERVICES, POOL_EXECUTOR, SCHEDULED_EXECUTOR
Constructor and Description |
---|
OddjobServicesBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassLoader() |
InputHandler |
getInputHandler() |
OddjobExecutors |
getOddjobExecutors() |
java.lang.Object |
getService(java.lang.String serviceName)
Provide the service for the given name.
|
java.lang.String |
serviceNameFor(java.lang.Class<?> theClass,
java.lang.String flavour)
If these services can provide a service of the given
class then a name that identifies the service is provided.
|
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setInputHandler(InputHandler inputHandler) |
void |
setOddjobExecutors(OddjobExecutors oddjobExecutors) |
java.lang.String |
toString() |
public java.lang.Object getService(java.lang.String serviceName)
Services
getService
in interface Services
public java.lang.String serviceNameFor(java.lang.Class<?> theClass, java.lang.String flavour)
Services
serviceNameFor
in interface Services
theClass
- The type of service.flavour
- An optional flavour. May be null.public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface OddjobServices
public void setClassLoader(java.lang.ClassLoader classLoader)
public OddjobExecutors getOddjobExecutors()
getOddjobExecutors
in interface OddjobServices
public void setOddjobExecutors(OddjobExecutors oddjobExecutors)
public InputHandler getInputHandler()
getInputHandler
in interface OddjobServices
public void setInputHandler(InputHandler inputHandler)
public java.lang.String toString()
toString
in class java.lang.Object