public abstract class AbstractServiceFactory extends Object implements ConfigurationFactory
Constructor and Description |
---|
AbstractServiceFactory(org.osgi.framework.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 org.osgi.framework.ServiceRegistration<?> |
registerService(UserInformation information,
org.osgi.framework.BundleContext context,
String configurationId,
Service service) |
void |
update(UserInformation information,
String configurationId,
Map<String,String> properties)
receive configuration update
|
public AbstractServiceFactory(org.osgi.framework.BundleContext context)
public void dispose()
public void delete(UserInformation information, String configurationId) throws Exception
ConfigurationFactory
delete
in interface ConfigurationFactory
information
- the principal that performed the change, may be null
configurationId
- 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
ConfigurationFactory
update
in interface ConfigurationFactory
information
- the principal that performed the change, may be null
configurationId
- 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
Exception
protected abstract org.osgi.framework.ServiceRegistration<?> registerService(UserInformation information, org.osgi.framework.BundleContext context, String configurationId, Service service)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.