Package de.poiu.coat.example
Class ImmutableAppConfig
- java.lang.Object
-
- de.poiu.coat.CoatConfig
-
- de.poiu.coat.example.ImmutableAppConfig
-
- All Implemented Interfaces:
AppConfig
@Generated(value="de.poiu.coat.processor.CoatProcessor", date="2021-05-31T15:08:20.056661+02:00") public class ImmutableAppConfig extends CoatConfig implements AppConfig
-
-
Constructor Summary
Constructors Constructor Description ImmutableAppConfig(File file)ImmutableAppConfig(Map<String,String> props)ImmutableAppConfig(Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>description()A short description of the purpose of this application.booleanequals(Object obj)inthashCode()InetAddresslistenAddres()The interfaces to listen on for incoming connections.intlistenPort()The port to listen on for incoming connections.MqttConfigmqtt()The configuration for the MQTT connectionStringname()A shorthand name for this application.static voidwriteExampleConfig(BufferedWriter writer)static voidwriteExampleConfig(Writer writer)-
Methods inherited from class de.poiu.coat.CoatConfig
filterByAndStripPrefix, get, get, getBoolean, getBooleanOrDefault, getDouble, getDoubleOrDefault, getInt, getIntOrDefault, getLong, getLongOrDefault, getOptional, getOptionalDouble, getOptionalDoubleOrDefault, getOptionalInt, getOptionalIntOrDefault, getOptionalLong, getOptionalLongOrDefault, getOptionalOrDefault, getOptionalString, getOrDefault, getString, getStringOrDefault, hasPrefix, registerConverter, registerEmbeddedConfig, toMap, toMap, toString, validate
-
-
-
-
Constructor Detail
-
ImmutableAppConfig
public ImmutableAppConfig(File file) throws IOException
- Throws:
IOException
-
ImmutableAppConfig
public ImmutableAppConfig(Properties props)
-
-
Method Detail
-
name
public String name()
A shorthand name for this application.
-
description
public Optional<String> description()
A short description of the purpose of this application.- Specified by:
descriptionin interfaceAppConfig
-
listenAddres
public InetAddress listenAddres()
The interfaces to listen on for incoming connections.- Specified by:
listenAddresin interfaceAppConfig
-
listenPort
public int listenPort()
The port to listen on for incoming connections.- Specified by:
listenPortin interfaceAppConfig
-
mqtt
public MqttConfig mqtt()
The configuration for the MQTT connection
-
writeExampleConfig
public static void writeExampleConfig(Writer writer) throws IOException
- Throws:
IOException
-
writeExampleConfig
public static void writeExampleConfig(BufferedWriter writer) throws IOException
- Throws:
IOException
-
-