Package net.solarnetwork.domain
Class BasicIdentifiableConfiguration
java.lang.Object
net.solarnetwork.domain.BasicIdentifiableConfiguration
- All Implemented Interfaces:
Serializable,IdentifiableConfiguration
public class BasicIdentifiableConfiguration
extends Object
implements IdentifiableConfiguration, Serializable
Basic implementation of
IdentifiableConfiguration.- Since:
- 1.42
- Version:
- 1.2
- Author:
- matt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get a name for this configurationGet the unique identifier for the service this configuration is associated with.Get a map of properties to pass to the service in order to perform actions.Get the service properties.voidSet the configuration name.voidsetServiceIdentifier(String serviceIdentifier) Set the unique identifier for the service this configuration is associated with.voidsetServiceProps(Map<String, Object> serviceProps) Set the service properties.toString()
-
Constructor Details
-
BasicIdentifiableConfiguration
public BasicIdentifiableConfiguration()Default constructor. -
BasicIdentifiableConfiguration
Copy constructor.- Parameters:
other- the configuration to copy
-
-
Method Details
-
toString
-
getName
Get a name for this configurationThis is meant to be configurable by end users.
- Specified by:
getNamein interfaceIdentifiableConfiguration- Returns:
- the configuration name
-
setName
Set the configuration name.- Parameters:
name- the name to use
-
getServiceIdentifier
Get the unique identifier for the service this configuration is associated with.- Specified by:
getServiceIdentifierin interfaceIdentifiableConfiguration- Returns:
- the identifier of the service
-
setServiceIdentifier
Set the unique identifier for the service this configuration is associated with.- Parameters:
serviceIdentifier- the identifier of the service to use
-
getServiceProperties
Description copied from interface:IdentifiableConfigurationGet a map of properties to pass to the service in order to perform actions.It is expected this map would contain user-supplied runtime configuration such as credentials to use, host name, etc.
- Specified by:
getServicePropertiesin interfaceIdentifiableConfiguration- Returns:
- the runtime properties to pass to the service
-
getServiceProps
Get the service properties.- Returns:
- the properties
-
setServiceProps
Set the service properties.- Parameters:
serviceProps- the properties to set
-