public interface ServiceFactory<T>
Modifier and Type | Method and Description |
---|---|
void |
createInstance(java.lang.String serviceID)
Create a service with the given attributes.
|
java.lang.String |
getFactoryID()
Get the id of this factory.
|
javax.management.MBeanInfo |
getServiceDescription(java.lang.String factoryID)
Get a description for a service this factory creates.
|
void createInstance(java.lang.String serviceID) throws java.lang.IllegalArgumentException, InvalidStateException
serviceID
- the id of the service to create, this will also be used in the
service param named serviceidjava.lang.IllegalArgumentException
- If the service ID is invalidInvalidStateException
- If service factory is not in a state to create an instance
of the servicejavax.management.MBeanInfo getServiceDescription(java.lang.String factoryID)
factoryID
- java.lang.String getFactoryID()