public class SimpleBusService extends java.lang.Object implements BusService
BEAN_BUS_SERVICE_NAME
Constructor and Description |
---|
SimpleBusService(BusConductor busConductor) |
SimpleBusService(BusServiceProvider delegate) |
Modifier and Type | Method and Description |
---|---|
BusConductor |
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.
|
java.lang.String |
toString() |
public SimpleBusService(BusConductor busConductor)
public SimpleBusService(BusServiceProvider delegate)
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 BusConductor getService(java.lang.String serviceName) throws java.lang.IllegalArgumentException
Services
getService
in interface Services
getService
in interface BusService
java.lang.IllegalArgumentException
- If no service for the
name can be provided.public java.lang.String toString()
toString
in class java.lang.Object