Package net.solarnetwork.node.job
Class SimpleServiceProviderConfiguration
java.lang.Object
net.solarnetwork.node.job.SimpleServiceProviderConfiguration
- All Implemented Interfaces:
ServiceProvider.ServiceConfiguration
public class SimpleServiceProviderConfiguration
extends Object
implements ServiceProvider.ServiceConfiguration
Basic configuration bean for a service provider.
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]The name of all interfaces this service supports.Get an optional map of service properties.The service instance.voidsetInterfaces(String[] interfaces) Set the interfaces.voidsetProperties(Map<String, Object> properties) Set the properties.voidsetService(Object service) Set the service.
-
Constructor Details
-
SimpleServiceProviderConfiguration
public SimpleServiceProviderConfiguration()
-
-
Method Details
-
getService
Description copied from interface:ServiceProvider.ServiceConfigurationThe service instance.- Specified by:
getServicein interfaceServiceProvider.ServiceConfiguration- Returns:
- The service instance.
-
setService
Set the service.- Parameters:
service- the service to set
-
getInterfaces
Description copied from interface:ServiceProvider.ServiceConfigurationThe name of all interfaces this service supports.- Specified by:
getInterfacesin interfaceServiceProvider.ServiceConfiguration- Returns:
- An array of interface names the service supports.
-
setInterfaces
Set the interfaces.- Parameters:
interfaces- the interfaces to set
-
getProperties
Description copied from interface:ServiceProvider.ServiceConfigurationGet an optional map of service properties.- Specified by:
getPropertiesin interfaceServiceProvider.ServiceConfiguration- Returns:
- An optional map of service properties.
-
setProperties
Set the properties.- Parameters:
properties- the properties to set
-