public class ExporterFactoryImpl extends AbstractServiceConfigurationFactory<ModbusExport>
AbstractServiceConfigurationFactory.Entry<T>| Constructor and Description |
|---|
ExporterFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractServiceConfigurationFactory.Entry<ModbusExport> |
createService(UserInformation userInformation,
java.lang.String configurationId,
BundleContext context,
java.util.Map<java.lang.String,java.lang.String> parameters)
Create a new service instance
|
void |
dispose() |
protected void |
disposeService(UserInformation userInformation,
java.lang.String configurationId,
ModbusExport service)
Dispose a service
|
protected AbstractServiceConfigurationFactory.Entry<ModbusExport> |
updateService(UserInformation userInformation,
java.lang.String configurationId,
AbstractServiceConfigurationFactory.Entry<ModbusExport> entry,
java.util.Map<java.lang.String,java.lang.String> parameters)
Update a service configuration
|
delete, getService, unregisterService, updatepublic void dispose()
dispose in class AbstractServiceConfigurationFactory<ModbusExport>protected AbstractServiceConfigurationFactory.Entry<ModbusExport> createService(UserInformation userInformation, java.lang.String configurationId, BundleContext context, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
AbstractServiceConfigurationFactoryThe method must also register the service with the OSGi bundle context if needed. The service registration must then be placed into the result that is returned. This is an optional step. There is no need to register the created service.
createService in class AbstractServiceConfigurationFactory<ModbusExport>configurationId - the configuration id for which the service should be createdcontext - the bundle contextparameters - the initial parametersnulljava.lang.Exception - if anything goes wrongprotected void disposeService(UserInformation userInformation,
java.lang.String configurationId,
ModbusExport service)
AbstractServiceConfigurationFactoryIf the service entry contains a service handle, the service is automatically unregistered.
disposeService in class AbstractServiceConfigurationFactory<ModbusExport>protected AbstractServiceConfigurationFactory.Entry<ModbusExport> updateService(UserInformation userInformation, java.lang.String configurationId, AbstractServiceConfigurationFactory.Entry<ModbusExport> entry, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
AbstractServiceConfigurationFactoryIf a new service entry is returned the old one will get disposed after the call returns
updateService in class AbstractServiceConfigurationFactory<ModbusExport>configurationId - the configuration to updateentry - the original service entryparameters - the new parametersnull if the entry did not
changejava.lang.Exception - if anything goes wrong
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0