Class InfoServiceBuilder
-
- All Implemented Interfaces:
-
de.jnkconsulting.e3dc.easyrscp.service.builder.ServiceBuilder
public final class InfoServiceBuilder extends DefaultServiceBuilder<InfoService>
ServiceBuilder implementation that creates instances of the InfoService type.
The Builder offers optional extension points in frame conversion and frame generation:
- Since:
2.0
-
-
Constructor Summary
Constructors Constructor Description InfoServiceBuilder()
-
Method Summary
Modifier and Type Method Description InfoServiceBuilderwithConnectionBuilder(ConnectionBuilder connectionBuilder)Function is only overwritten to increase usability in java. final InfoServiceBuilderwithSystemInfoFrameConverter(FrameConverter<SystemInfo> converter)Sets the converter to create a SystemInfo object from a response frame. final InfoServiceBuilderwithRequestReadSystemInfoCreator(FrameCreator<Void> creator)Sets the creator of request frames to load the basic system information's from the house power plant database. DefaultInfoServicebuildService()Creates a new service instance -
-
Method Detail
-
withConnectionBuilder
InfoServiceBuilder withConnectionBuilder(ConnectionBuilder connectionBuilder)
Function is only overwritten to increase usability in java. Without that, the Java compiler would generate an error, because here a DefaultServiceBuilder instance is supplied and no InfoServiceBuilder instance ...
- Parameters:
connectionBuilder- Required connection builder
-
withSystemInfoFrameConverter
final InfoServiceBuilder withSystemInfoFrameConverter(FrameConverter<SystemInfo> converter)
Sets the converter to create a SystemInfo object from a response frame. Optional setting. By default an instance of the type SystemInfoConverter is used.
- Parameters:
converter- Converter to use- Returns:
this reference
- Since:
2.0
-
withRequestReadSystemInfoCreator
final InfoServiceBuilder withRequestReadSystemInfoCreator(FrameCreator<Void> creator)
Sets the creator of request frames to load the basic system information's from the house power plant database. Optional setting. By default, an instance of the type RequestSystemInfosCreator is used.
- Parameters:
creator- Creator to use- Returns:
this reference
- Since:
2.0
-
buildService
DefaultInfoService buildService()
Creates a new service instance
- Returns:
Service instance
- Since:
2.0
-
-
-
-