public abstract class AbstractServiceFactory extends Object implements ConfigurationFactory
| Constructor and Description |
|---|
AbstractServiceFactory(BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Service |
createService(UserInformation information,
String configurationId,
Map<String,String> properties) |
void |
delete(UserInformation information,
String configurationId)
receive configuration delete request
|
void |
dispose() |
protected abstract ServiceRegistration<?> |
registerService(UserInformation information,
BundleContext context,
String configurationId,
Service service) |
void |
update(UserInformation information,
String configurationId,
Map<String,String> properties)
receive configuration update
|
public AbstractServiceFactory(BundleContext context)
public void dispose()
public void delete(UserInformation information, String configurationId) throws Exception
ConfigurationFactorydelete in interface ConfigurationFactoryinformation - the principal that performed the change, may be nullconfigurationId - the configuration object to changeException - can be thrown if anything goes wrong changing the configurationpublic void update(UserInformation information, String configurationId, Map<String,String> properties) throws Exception
ConfigurationFactoryupdate in interface ConfigurationFactoryinformation - the principal that performed the change, may be nullconfigurationId - the configuration object to changeproperties - the new propertiesException - can be thrown if anything goes wrong changing the configurationprotected abstract Service createService(UserInformation information, String configurationId, Map<String,String> properties) throws Exception
Exceptionprotected abstract ServiceRegistration<?> registerService(UserInformation information, BundleContext context, String configurationId, Service service)