From 7994ecf3d659f1e236d9b617b4e133c51d0f08e0 Mon Sep 17 00:00:00 2001 From: Sebastien Vermeille Date: Tue, 6 Feb 2024 19:23:16 +0100 Subject: [PATCH] Document and restrict static access when possible --- .../java/dev/cookiecode/rika2mqtt/bridge/Bridge.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bridge/src/main/java/dev/cookiecode/rika2mqtt/bridge/Bridge.java b/bridge/src/main/java/dev/cookiecode/rika2mqtt/bridge/Bridge.java index dd4337d..47041b8 100644 --- a/bridge/src/main/java/dev/cookiecode/rika2mqtt/bridge/Bridge.java +++ b/bridge/src/main/java/dev/cookiecode/rika2mqtt/bridge/Bridge.java @@ -55,6 +55,9 @@ import org.springframework.stereotype.Component; /** + * Bridge class responsible for initializing, polling stove status, handling MQTT commands, and + * publishing to MQTT. + * * @author Sebastien Vermeille */ @Component @@ -62,16 +65,17 @@ @Flogger public class Bridge { - static final String INITIALIZING_BRIDGE = "Initializing Rika2Mqtt bridge :"; static final String RECEIVED_MQTT_COMMAND_FOR_STOVE_S = "Received mqtt command for stove: %s"; - static final String COULD_NOT_PROCESS_THE_RECEIVED_MQTT_COMMAND_S = - "Could not process the received mqtt command: %s"; static final String COULD_NOT_RETRIEVE_ANY_STOVE_LINKED_WITH_ACCOUNT_S_PLEASE_DOUBLE_CHECK_YOUR_CONFIGURATION = "Could not retrieve any stove linked with account %s. Please double-check your configuration."; static final String WILL_NOW_RETRIEVE_STATUS_FOR_EACH_DECLARED_STOVES_AT_INTERVAL_OF_S_AND_PUBLISH_IT_BACK_TO_MQTT = "Will now retrieve status for each declared stove(s) at interval of %s and publish it back to mqtt."; + private static final String INITIALIZING_BRIDGE = "Initializing Rika2Mqtt bridge :"; + private static final String COULD_NOT_PROCESS_THE_RECEIVED_MQTT_COMMAND_S = + "Could not process the received mqtt command: %s"; + private final RikaFirenetService rikaFirenetService; private final MqttPublicationService mqttPublicationService;