Package org.oddjob.beanbus
Class SimpleConductorService
java.lang.Object
org.oddjob.beanbus.SimpleConductorService
- All Implemented Interfaces:
Services,ConductorService
-
Field Summary
Fields inherited from interface org.oddjob.beanbus.ConductorService
CONDUCTOR_SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetService(String serviceName) Provide the service for the given name.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.toString()
-
Constructor Details
-
SimpleConductorService
-
SimpleConductorService
-
-
Method Details
-
serviceNameFor
Description copied from interface:ServicesIf these services can provide a service of the given class then a name that identifies the service is provided.- Specified by:
serviceNameForin interfaceServices- Parameters:
theClass- The type of service.flavour- An optional flavour. May be null.- Returns:
- A service name, or null if none can be provided.
-
getService
Description copied from interface:ServicesProvide the service for the given name.- Specified by:
getServicein interfaceConductorService- Specified by:
getServicein interfaceServices- Parameters:
serviceName-- Returns:
- A service for the name.
- Throws:
IllegalArgumentException- If no service for the name can be provided.
-
toString
-