public class SimpleBusService extends Object implements BusService
BEAN_BUS_SERVICE_NAME
Constructor and Description |
---|
SimpleBusService(BusConductor busConductor) |
SimpleBusService(BusServiceProvider delegate) |
Modifier and Type | Method and Description |
---|---|
BusConductor |
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.
|
String |
toString() |
public SimpleBusService(BusConductor busConductor)
public SimpleBusService(BusServiceProvider delegate)
public String serviceNameFor(Class<?> theClass, String flavour)
Services
serviceNameFor
in interface Services
theClass
- The type of service.flavour
- An optional flavour. May be null.public BusConductor getService(String serviceName) throws IllegalArgumentException
Services
getService
in interface Services
getService
in interface BusService
IllegalArgumentException
- If no service for the
name can be provided.