From 003c3af98535d931e248efd1d3b52a7c33c3da3a Mon Sep 17 00:00:00 2001 From: Hilbrand Bouwkamp Date: Fri, 2 Oct 2020 05:27:01 +0200 Subject: [PATCH] Remove immediate = true from all Components (#8615) We recommend not to use this on add-ons. Signed-off-by: Hilbrand Bouwkamp --- .../adorne/internal/discovery/AdorneDiscoveryService.java | 2 +- .../internal/discovery/AirVisualNodeDiscoveryService.java | 2 +- .../internal/discovery/AllPlaySpeakerDiscoveryService.java | 2 +- .../discovery/AmazonDashButtonDiscoveryService.java | 2 +- .../astro/internal/discovery/AstroDiscoveryService.java | 2 +- .../binding/atlona/internal/discovery/AtlonaDiscovery.java | 2 +- .../internal/discovery/AutelisDiscoveryParticipant.java | 2 +- .../discovery/AVMFritzUpnpDiscoveryParticipant.java | 2 +- .../internal/discovery/BigAssFanDiscoveryService.java | 2 +- .../airthings/internal/AirthingsDiscoveryParticipant.java | 2 +- .../bluetooth/am43/internal/AM43DiscoveryParticipant.java | 2 +- .../bluez/internal/discovery/BlueZDiscoveryService.java | 2 +- .../blukii/internal/BlukiiDiscoveryParticipant.java | 2 +- .../internal/RoamingBluetoothDiscoveryParticipant.java | 2 +- .../ruuvitag/internal/RuuviTagDiscoveryParticipant.java | 2 +- .../discovery/internal/BluetoothDiscoveryService.java | 2 +- .../internal/discovery/SoundTouchDiscoveryParticipant.java | 2 +- .../internal/account/SmartherAccountService.java | 2 +- .../internal/discovery/ChromecastDiscoveryParticipant.java | 2 +- .../internal/discovery/CoronaStatsDiscoveryService.java | 2 +- .../internal/discovery/DanfossAirUnitDiscoveryService.java | 2 +- .../binding/deconz/internal/StateDescriptionProvider.java | 2 +- .../internal/discovery/BridgeDiscoveryParticipant.java | 2 +- .../discovery/DenonMarantzDiscoveryParticipant.java | 2 +- .../internal/discovery/BridgeDiscoveryService.java | 2 +- .../internal/discovery/BridgeMDNSDiscoveryParticipant.java | 2 +- .../internal/providers/DsChannelTypeProvider.java | 2 +- .../internal/providers/DsDeviceThingTypeProvider.java | 2 +- .../internal/DLinkSmartHomeDiscoveryParticipant.java | 2 +- .../internal/discovery/DSCAlarmBridgeDiscovery.java | 2 +- .../internal/discovery/DWDPollenflugDiscoveryService.java | 2 +- .../internal/discovery/Enigma2DiscoveryParticipant.java | 2 +- .../binding/etherrain/internal/EtherRainHandlerFactory.java | 2 +- .../internal/discovery/EtherrainDiscoveryService.java | 2 +- .../binding/feican/internal/FeicanDiscoveryService.java | 2 +- .../internal/discovery/FMIWeatherDiscoveryService.java | 2 +- .../internal/discovery/FoldingSlotDiscoveryService.java | 2 +- .../discovery/FreeboxServerDiscoveryParticipant.java | 2 +- .../internal/FSInternetRadioDiscoveryParticipant.java | 2 +- .../internal/discovery/GlobalCacheDiscoveryService.java | 2 +- .../internal/discovery/TrackerDiscoveryService.java | 2 +- .../binding/gree/internal/GreeTranslationProvider.java | 2 +- .../binding/gree/internal/discovery/GreeDeviceFinder.java | 2 +- .../gree/internal/discovery/GreeDiscoveryService.java | 2 +- .../internal/discovery/HarmonyHubDiscoveryService.java | 2 +- .../discovery/HDPowerViewHubDiscoveryParticipant.java | 2 +- .../internal/discovery/HDPowerViewHubDiscoveryService.java | 2 +- .../heos/internal/discovery/HeosDiscoveryParticipant.java | 2 +- .../homematic/internal/discovery/CcuDiscoveryService.java | 2 +- .../internal/discovery/HomegearDiscoveryParticipant.java | 2 +- .../type/HomematicChannelGroupTypeProviderImpl.java | 2 +- .../internal/type/HomematicChannelTypeProviderImpl.java | 2 +- .../type/HomematicConfigDescriptionProviderImpl.java | 2 +- .../internal/type/HomematicThingTypeProviderImpl.java | 2 +- .../homematic/internal/type/HomematicTypeGeneratorImpl.java | 2 +- .../hpprinter/internal/HPPrinterDiscoveryParticipant.java | 2 +- .../internal/discovery/HueBridgeDiscoveryParticipant.java | 2 +- .../hue/internal/discovery/HueBridgeNupnpDiscovery.java | 2 +- .../hyperion/internal/HyperionDiscoveryParticipant.java | 2 +- .../binding/ipcamera/internal/IpCameraDiscoveryService.java | 2 +- .../binding/ipcamera/internal/IpCameraHandlerFactory.java | 2 +- .../internal/discovery/IppPrinterDiscoveryParticipant.java | 2 +- .../binding/km200/internal/KM200ChannelTypeProvider.java | 3 +-- .../discovery/KM200GatewayDiscoveryParticipant.java | 2 +- .../internal/discovery/KodiUpnpDiscoveryParticipant.java | 2 +- .../konnected/internal/discovery/KonnectedUPnPServer.java | 2 +- .../openhab/binding/lametrictime/internal/GsonProvider.java | 2 +- .../discovery/LaMetricTimeDiscoveryParticipant.java | 2 +- .../lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java | 2 +- .../internal/discovery/LeapMotionDiscoveryService.java | 2 +- .../internal/discovery/LGWebOSUpnpDiscoveryParticipant.java | 2 +- .../binding/lifx/internal/LifxChannelFactoryImpl.java | 2 +- .../openhab/binding/lifx/internal/LifxLightDiscovery.java | 2 +- .../linuxinput/internal/LinuxInputDiscoveryService.java | 2 +- .../binding/loxone/internal/LxDiscoveryParticipant.java | 2 +- .../discovery/LutronMcastBridgeDiscoveryService.java | 2 +- .../discovery/LutronMdnsBridgeDiscoveryService.java | 2 +- .../max/internal/discovery/MaxCubeBridgeDiscovery.java | 2 +- .../internal/discovery/MieleMDNSDiscoveryParticipant.java | 2 +- .../internal/discovery/XiaomiBridgeDiscoveryService.java | 2 +- .../binding/miio/internal/discovery/MiIoDiscovery.java | 2 +- .../miio/internal/discovery/MiIoDiscoveryParticipant.java | 2 +- .../milight/internal/discovery/MilightBridgeDiscovery.java | 2 +- .../binding/milight/internal/test/TestDiscovery.java | 2 +- .../internal/discovery/MinecraftDiscoveryService.java | 2 +- .../discovery/MinecraftMDNSDiscoveryParticipant.java | 2 +- .../internal/discovery/SunspecDiscoveryParticipant.java | 2 +- bundles/org.openhab.binding.modbus/DEVELOPERS.md | 2 +- .../modbus/discovery/internal/ModbusDiscoveryService.java | 2 +- .../mpd/internal/discovery/MPDDiscoveryParticipant.java | 2 +- .../internal/discovery/HomeAssistantDiscovery.java | 2 +- .../mqtt/homie/internal/discovery/Homie300Discovery.java | 2 +- .../internal/discovery/MqttServiceDiscoveryService.java | 2 +- .../discovery/NanoleafMDNSDiscoveryParticipant.java | 2 +- .../binding/neeo/internal/discovery/NeeoBrainDiscovery.java | 2 +- .../network/internal/discovery/NetworkDiscoveryService.java | 2 +- .../discovery/NikoHomeControlBridgeDiscoveryService.java | 2 +- .../binding/ntp/internal/discovery/NtpDiscovery.java | 2 +- .../onewire/internal/OwDynamicStateDescriptionProvider.java | 3 +-- .../internal/discovery/OnkyoUpnpDiscoveryParticipant.java | 2 +- .../internal/discovery/OpenSprinklerDiscoveryService.java | 2 +- .../orvibo/internal/discovery/SocketDiscoveryService.java | 2 +- .../internal/discovery/PioneerAvrDiscoveryParticipant.java | 2 +- .../internal/discovery/PulseaudioDiscoveryParticipant.java | 2 +- .../rfxcom/internal/discovery/RFXComBridgeDiscovery.java | 2 +- .../russound/internal/discovery/RioSystemDiscovery.java | 2 +- .../internal/discovery/SagerCasterDiscoveryService.java | 2 +- .../internal/discovery/SamsungTvDiscoveryParticipant.java | 2 +- .../binding/shelly/internal/api/ShellyEventServlet.java | 2 +- .../internal/discovery/ShellyDiscoveryParticipant.java | 2 +- .../discovery/SilvercrestWifiSocketDiscoveryService.java | 2 +- .../internal/handler/SilvercrestWifiSocketMediatorImpl.java | 2 +- .../binding/sinope/internal/SinopeHandlerFactory.java | 2 +- .../internal/discovery/SMAEnergyMeterDiscoveryService.java | 2 +- .../smartthings/internal/SmartthingsHandlerFactory.java | 2 +- .../binding/smartthings/internal/SmartthingsServlet.java | 2 +- .../internal/discovery/SmartthingsDiscoveryService.java | 2 +- .../internal/discovery/ZonePlayerDiscoveryParticipant.java | 2 +- .../internal/discovery/SonyAudioDiscoveryParticipant.java | 2 +- .../binding/spotify/internal/SpotifyAuthService.java | 2 +- .../discovery/SqueezeBoxServerDiscoveryParticipant.java | 2 +- .../internal/discovery/SysteminfoDiscoveryService.java | 2 +- .../internal/discovery/TellstickBridgeDiscovery.java | 2 +- .../tesla/internal/command/TeslaCommandExtension.java | 2 +- .../internal/discovery/TradfriDiscoveryParticipant.java | 2 +- .../velux/internal/discovery/VeluxDiscoveryService.java | 2 +- .../internal/discovery/VitotronicBridgeDiscovery.java | 2 +- .../wemo/internal/discovery/WemoDiscoveryParticipant.java | 2 +- .../wemo/internal/discovery/WemoDiscoveryService.java | 2 +- .../wifiled/internal/discovery/WiFiLEDDiscoveryService.java | 2 +- .../internal/discovery/YamahaDiscoveryParticipant.java | 2 +- .../internal/discovery/YeelightDiscoveryService.java | 2 +- .../zway/internal/discovery/ZWayBridgeDiscoveryService.java | 2 +- .../java/org/openhab/io/homekit/internal/HomekitImpl.java | 2 +- .../io/hueemulation/internal/HueEmulationService.java | 2 +- .../hueemulation/internal/automation/HueHandlerFactory.java | 2 +- .../internal/automation/RulesHandlerFactory.java | 2 +- .../internal/automation/TimerModuleExHandlerFactory.java | 2 +- .../io/imperihome/internal/ImperiHomeApiServlet.java | 2 +- .../mqttembeddedbroker/internal/EmbeddedBrokerService.java | 2 +- .../src/main/java/org/openhab/io/neeo/NeeoService.java | 6 +++--- .../org/openhab/io/openhabcloud/internal/CloudService.java | 2 +- .../io/transport/modbus/internal/ModbusManagerImpl.java | 2 +- .../bin2json/internal/Bin2JsonTransformationService.java | 2 +- .../transform/exec/internal/ExecTransformationService.java | 2 +- .../internal/JavaScriptTransformationService.java | 2 +- .../jinja/internal/JinjaTransformationService.java | 2 +- .../jsonpath/internal/JSonPathTransformationService.java | 2 +- .../transform/map/internal/MapTransformationService.java | 2 +- .../regex/internal/RegExTransformationService.java | 2 +- .../scale/internal/ScaleTransformationService.java | 2 +- .../xpath/internal/XPathTransformationService.java | 2 +- .../transform/xslt/internal/XsltTransformationService.java | 2 +- 153 files changed, 155 insertions(+), 157 deletions(-) diff --git a/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/discovery/AdorneDiscoveryService.java b/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/discovery/AdorneDiscoveryService.java index 454d9d583..9e2668a01 100644 --- a/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/discovery/AdorneDiscoveryService.java +++ b/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/discovery/AdorneDiscoveryService.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * @author Mark Theiding - Initial Contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.adorne") +@Component(service = DiscoveryService.class, configurationPid = "discovery.adorne") public class AdorneDiscoveryService extends AbstractDiscoveryService implements AdorneHubChangeNotify { private final Logger logger = LoggerFactory.getLogger(AdorneDiscoveryService.class); diff --git a/bundles/org.openhab.binding.airvisualnode/src/main/java/org/openhab/binding/airvisualnode/internal/discovery/AirVisualNodeDiscoveryService.java b/bundles/org.openhab.binding.airvisualnode/src/main/java/org/openhab/binding/airvisualnode/internal/discovery/AirVisualNodeDiscoveryService.java index 0e5e341f6..a05665754 100644 --- a/bundles/org.openhab.binding.airvisualnode/src/main/java/org/openhab/binding/airvisualnode/internal/discovery/AirVisualNodeDiscoveryService.java +++ b/bundles/org.openhab.binding.airvisualnode/src/main/java/org/openhab/binding/airvisualnode/internal/discovery/AirVisualNodeDiscoveryService.java @@ -39,7 +39,7 @@ import jcifs.smb.SmbFile; * * @author Victor Antonovich - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true) +@Component(service = DiscoveryService.class) public class AirVisualNodeDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(AirVisualNodeDiscoveryService.class); diff --git a/bundles/org.openhab.binding.allplay/src/main/java/org/openhab/binding/allplay/internal/discovery/AllPlaySpeakerDiscoveryService.java b/bundles/org.openhab.binding.allplay/src/main/java/org/openhab/binding/allplay/internal/discovery/AllPlaySpeakerDiscoveryService.java index 5cf3694fd..74be5f4c0 100644 --- a/bundles/org.openhab.binding.allplay/src/main/java/org/openhab/binding/allplay/internal/discovery/AllPlaySpeakerDiscoveryService.java +++ b/bundles/org.openhab.binding.allplay/src/main/java/org/openhab/binding/allplay/internal/discovery/AllPlaySpeakerDiscoveryService.java @@ -40,7 +40,7 @@ import de.kaizencode.tchaikovsky.speaker.Speaker; * * @author Dominic Lerbs - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.allplay") +@Component(service = DiscoveryService.class, configurationPid = "discovery.allplay") public class AllPlaySpeakerDiscoveryService extends AbstractDiscoveryService implements SpeakerAnnouncedListener { private final Logger logger = LoggerFactory.getLogger(AllPlaySpeakerDiscoveryService.class); diff --git a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/discovery/AmazonDashButtonDiscoveryService.java b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/discovery/AmazonDashButtonDiscoveryService.java index 9b9593054..312edd25b 100644 --- a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/discovery/AmazonDashButtonDiscoveryService.java +++ b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/discovery/AmazonDashButtonDiscoveryService.java @@ -52,7 +52,7 @@ import org.slf4j.LoggerFactory; * @author Oliver Libutzki - Initial contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.amazondashbutton") +@Component(service = DiscoveryService.class, configurationPid = "discovery.amazondashbutton") public class AmazonDashButtonDiscoveryService extends AbstractDiscoveryService implements PcapNetworkInterfaceListener { private static final int DISCOVER_TIMEOUT_SECONDS = 30; diff --git a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/discovery/AstroDiscoveryService.java b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/discovery/AstroDiscoveryService.java index 7e3561a29..1dc040e70 100644 --- a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/discovery/AstroDiscoveryService.java +++ b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/discovery/AstroDiscoveryService.java @@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory; * @author Stefan Triller - Use configured location */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.astro") +@Component(service = DiscoveryService.class, configurationPid = "discovery.astro") public class AstroDiscoveryService extends AbstractDiscoveryService { private static final int DISCOVER_TIMEOUT_SECONDS = 2; private static final int LOCATION_CHANGED_CHECK_INTERVAL = 60; diff --git a/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/discovery/AtlonaDiscovery.java b/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/discovery/AtlonaDiscovery.java index 465258e27..d490ac9d2 100644 --- a/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/discovery/AtlonaDiscovery.java +++ b/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/discovery/AtlonaDiscovery.java @@ -48,7 +48,7 @@ import org.slf4j.LoggerFactory; * * @author Tim Roberts - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.atlona") +@Component(service = DiscoveryService.class, configurationPid = "discovery.atlona") public class AtlonaDiscovery extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(AtlonaDiscovery.class); diff --git a/bundles/org.openhab.binding.autelis/src/main/java/org/openhab/binding/autelis/internal/discovery/AutelisDiscoveryParticipant.java b/bundles/org.openhab.binding.autelis/src/main/java/org/openhab/binding/autelis/internal/discovery/AutelisDiscoveryParticipant.java index 1d7576782..174998980 100644 --- a/bundles/org.openhab.binding.autelis/src/main/java/org/openhab/binding/autelis/internal/discovery/AutelisDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.autelis/src/main/java/org/openhab/binding/autelis/internal/discovery/AutelisDiscoveryParticipant.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class AutelisDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(AutelisDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/discovery/AVMFritzUpnpDiscoveryParticipant.java b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/discovery/AVMFritzUpnpDiscoveryParticipant.java index e1ebff87f..8c958ebb9 100644 --- a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/discovery/AVMFritzUpnpDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/discovery/AVMFritzUpnpDiscoveryParticipant.java @@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory; * @author Christoph Weitkamp - Added support for groups * @author Christoph Weitkamp - Use "discovery.avmfritz:background=false" to disable discovery service */ -@Component(immediate = true, configurationPid = "discovery.avmfritz") +@Component(configurationPid = "discovery.avmfritz") @NonNullByDefault public class AVMFritzUpnpDiscoveryParticipant implements UpnpDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.bigassfan/src/main/java/org/openhab/binding/bigassfan/internal/discovery/BigAssFanDiscoveryService.java b/bundles/org.openhab.binding.bigassfan/src/main/java/org/openhab/binding/bigassfan/internal/discovery/BigAssFanDiscoveryService.java index 4c21d958e..23ed912e7 100644 --- a/bundles/org.openhab.binding.bigassfan/src/main/java/org/openhab/binding/bigassfan/internal/discovery/BigAssFanDiscoveryService.java +++ b/bundles/org.openhab.binding.bigassfan/src/main/java/org/openhab/binding/bigassfan/internal/discovery/BigAssFanDiscoveryService.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * * @author Mark Hilbush - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.bigassfan") +@Component(service = DiscoveryService.class, configurationPid = "discovery.bigassfan") public class BigAssFanDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(BigAssFanDiscoveryService.class); diff --git a/bundles/org.openhab.binding.bluetooth.airthings/src/main/java/org/openhab/binding/bluetooth/airthings/internal/AirthingsDiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth.airthings/src/main/java/org/openhab/binding/bluetooth/airthings/internal/AirthingsDiscoveryParticipant.java index a5f0533ab..1060566c9 100644 --- a/bundles/org.openhab.binding.bluetooth.airthings/src/main/java/org/openhab/binding/bluetooth/airthings/internal/AirthingsDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth.airthings/src/main/java/org/openhab/binding/bluetooth/airthings/internal/AirthingsDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.osgi.service.component.annotations.Component; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class AirthingsDiscoveryParticipant implements BluetoothDiscoveryParticipant { private static final int AIRTHINGS_COMPANY_ID = 820; // Formerly Corentium AS diff --git a/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/AM43DiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/AM43DiscoveryParticipant.java index 95391d863..33cb14ed5 100644 --- a/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/AM43DiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/AM43DiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.Component; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class AM43DiscoveryParticipant implements BluetoothDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/discovery/BlueZDiscoveryService.java b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/discovery/BlueZDiscoveryService.java index a0e895940..0ad4de71b 100644 --- a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/discovery/BlueZDiscoveryService.java +++ b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/discovery/BlueZDiscoveryService.java @@ -35,7 +35,7 @@ import tinyb.BluetoothManager; * @author Hilbrand Bouwkamp - Moved background scan to actual background method * */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.bluetooth.bluez") +@Component(service = DiscoveryService.class, configurationPid = "discovery.bluetooth.bluez") public class BlueZDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(BlueZDiscoveryService.class); diff --git a/bundles/org.openhab.binding.bluetooth.blukii/src/main/java/org/openhab/binding/bluetooth/blukii/internal/BlukiiDiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth.blukii/src/main/java/org/openhab/binding/bluetooth/blukii/internal/BlukiiDiscoveryParticipant.java index 1a33344b5..ae71bef68 100644 --- a/bundles/org.openhab.binding.bluetooth.blukii/src/main/java/org/openhab/binding/bluetooth/blukii/internal/BlukiiDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth.blukii/src/main/java/org/openhab/binding/bluetooth/blukii/internal/BlukiiDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.Component; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class BlukiiDiscoveryParticipant implements BluetoothDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBluetoothDiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBluetoothDiscoveryParticipant.java index f73fcfa17..426edc69e 100644 --- a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBluetoothDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBluetoothDiscoveryParticipant.java @@ -38,7 +38,7 @@ import org.osgi.service.component.annotations.ReferencePolicy; * @author Connor Petty - Initial contribution */ @NonNullByDefault -@Component(immediate = true, service = { BluetoothDiscoveryParticipant.class }) +@Component(service = { BluetoothDiscoveryParticipant.class }) public class RoamingBluetoothDiscoveryParticipant implements BluetoothDiscoveryParticipant { private final Set adapters = new CopyOnWriteArraySet<>(); diff --git a/bundles/org.openhab.binding.bluetooth.ruuvitag/src/main/java/org/openhab/binding/bluetooth/ruuvitag/internal/RuuviTagDiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth.ruuvitag/src/main/java/org/openhab/binding/bluetooth/ruuvitag/internal/RuuviTagDiscoveryParticipant.java index 783552266..1390b9c37 100644 --- a/bundles/org.openhab.binding.bluetooth.ruuvitag/src/main/java/org/openhab/binding/bluetooth/ruuvitag/internal/RuuviTagDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth.ruuvitag/src/main/java/org/openhab/binding/bluetooth/ruuvitag/internal/RuuviTagDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.osgi.service.component.annotations.Component; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class RuuviTagDiscoveryParticipant implements BluetoothDiscoveryParticipant { private static final int RUUVITAG_COMPANY_ID = 1177; diff --git a/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/internal/BluetoothDiscoveryService.java b/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/internal/BluetoothDiscoveryService.java index da64eb3c4..3574ff148 100644 --- a/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/internal/BluetoothDiscoveryService.java +++ b/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/internal/BluetoothDiscoveryService.java @@ -54,7 +54,7 @@ import org.slf4j.LoggerFactory; * @author Connor Petty - Introduced connection based discovery and added roaming support */ @NonNullByDefault -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.bluetooth") +@Component(service = DiscoveryService.class, configurationPid = "discovery.bluetooth") public class BluetoothDiscoveryService extends AbstractDiscoveryService implements BluetoothDiscoveryListener { private final Logger logger = LoggerFactory.getLogger(BluetoothDiscoveryService.class); diff --git a/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/discovery/SoundTouchDiscoveryParticipant.java b/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/discovery/SoundTouchDiscoveryParticipant.java index 368d81419..63bda68ef 100644 --- a/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/discovery/SoundTouchDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/discovery/SoundTouchDiscoveryParticipant.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * @author Christian Niessner - Initial contribution * @author Thomas Traunbauer - Initial contribution */ -@Component(immediate = true, configurationPid = "discovery.bosesoundtouch") +@Component(configurationPid = "discovery.bosesoundtouch") public class SoundTouchDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(SoundTouchDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.bticinosmarther/src/main/java/org/openhab/binding/bticinosmarther/internal/account/SmartherAccountService.java b/bundles/org.openhab.binding.bticinosmarther/src/main/java/org/openhab/binding/bticinosmarther/internal/account/SmartherAccountService.java index 82784e5e1..fd9142ad6 100644 --- a/bundles/org.openhab.binding.bticinosmarther/src/main/java/org/openhab/binding/bticinosmarther/internal/account/SmartherAccountService.java +++ b/bundles/org.openhab.binding.bticinosmarther/src/main/java/org/openhab/binding/bticinosmarther/internal/account/SmartherAccountService.java @@ -49,7 +49,7 @@ import org.slf4j.LoggerFactory; * * @author Fabio Possieri - Initial contribution */ -@Component(service = SmartherAccountService.class, immediate = true, configurationPid = "binding.bticinosmarther.accountService") +@Component(service = SmartherAccountService.class, configurationPid = "binding.bticinosmarther.accountService") @NonNullByDefault public class SmartherAccountService { diff --git a/bundles/org.openhab.binding.chromecast/src/main/java/org/openhab/binding/chromecast/internal/discovery/ChromecastDiscoveryParticipant.java b/bundles/org.openhab.binding.chromecast/src/main/java/org/openhab/binding/chromecast/internal/discovery/ChromecastDiscoveryParticipant.java index a4891c62b..0661219a3 100644 --- a/bundles/org.openhab.binding.chromecast/src/main/java/org/openhab/binding/chromecast/internal/discovery/ChromecastDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.chromecast/src/main/java/org/openhab/binding/chromecast/internal/discovery/ChromecastDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * @author Kai Kreuzer - Initial contribution * @author Daniel Walters - Change discovery protocol to mDNS */ -@Component(immediate = true) +@Component @NonNullByDefault public class ChromecastDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(ChromecastDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.coronastats/src/main/java/org/openhab/binding/coronastats/internal/discovery/CoronaStatsDiscoveryService.java b/bundles/org.openhab.binding.coronastats/src/main/java/org/openhab/binding/coronastats/internal/discovery/CoronaStatsDiscoveryService.java index 501f5fb11..e595f4de6 100644 --- a/bundles/org.openhab.binding.coronastats/src/main/java/org/openhab/binding/coronastats/internal/discovery/CoronaStatsDiscoveryService.java +++ b/bundles/org.openhab.binding.coronastats/src/main/java/org/openhab/binding/coronastats/internal/discovery/CoronaStatsDiscoveryService.java @@ -30,7 +30,7 @@ import org.slf4j.LoggerFactory; * @author Johannes Ott - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.coronastats") +@Component(service = DiscoveryService.class, configurationPid = "discovery.coronastats") public class CoronaStatsDiscoveryService extends AbstractDiscoveryService { private static final ThingUID WORLD_THING_UID = new ThingUID(THING_TYPE_WORLD, STATS); private static final int DISCOVER_TIMEOUT_SECONDS = 2; diff --git a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/discovery/DanfossAirUnitDiscoveryService.java b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/discovery/DanfossAirUnitDiscoveryService.java index dd58c6ed5..e67f85885 100644 --- a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/discovery/DanfossAirUnitDiscoveryService.java +++ b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/discovery/DanfossAirUnitDiscoveryService.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * @author Ralf Duckstein - Initial contribution * @author Robert Bach - heavy refactorings */ -@Component(service = DiscoveryService.class, immediate = true) +@Component(service = DiscoveryService.class) @NonNullByDefault public class DanfossAirUnitDiscoveryService extends AbstractDiscoveryService { diff --git a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/StateDescriptionProvider.java b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/StateDescriptionProvider.java index b2c8f9577..5bed4cbb1 100644 --- a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/StateDescriptionProvider.java +++ b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/StateDescriptionProvider.java @@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory; * @author Jan N. Klug - Initial contribution */ @NonNullByDefault -@Component(service = { DynamicStateDescriptionProvider.class, StateDescriptionProvider.class }, immediate = true) +@Component(service = { DynamicStateDescriptionProvider.class, StateDescriptionProvider.class }) public class StateDescriptionProvider implements DynamicStateDescriptionProvider { private final Map descriptions = new ConcurrentHashMap<>(); diff --git a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/BridgeDiscoveryParticipant.java b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/BridgeDiscoveryParticipant.java index b1b718b07..dc946a268 100644 --- a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/BridgeDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/BridgeDiscoveryParticipant.java @@ -41,7 +41,7 @@ import org.osgi.service.component.annotations.Component; * @author David Graeff - Initial contribution */ @NonNullByDefault -@Component(service = UpnpDiscoveryParticipant.class, immediate = true) +@Component(service = UpnpDiscoveryParticipant.class) public class BridgeDiscoveryParticipant implements UpnpDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/discovery/DenonMarantzDiscoveryParticipant.java b/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/discovery/DenonMarantzDiscoveryParticipant.java index 44967ab69..331d4e61a 100644 --- a/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/discovery/DenonMarantzDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/discovery/DenonMarantzDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * @author Jan-Willem Veldhuis - Initial contribution * */ -@Component(immediate = true) +@Component public class DenonMarantzDiscoveryParticipant implements MDNSDiscoveryParticipant { private Logger logger = LoggerFactory.getLogger(DenonMarantzDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeDiscoveryService.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeDiscoveryService.java index 81f41b883..66f87f94d 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeDiscoveryService.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * @author Michael Ochel - Initial contribution * @author Matthias Siegele - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.digitalstrom") +@Component(service = DiscoveryService.class, configurationPid = "discovery.digitalstrom") public class BridgeDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(BridgeDiscoveryService.class); diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeMDNSDiscoveryParticipant.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeMDNSDiscoveryParticipant.java index d25db10a1..a54cd9b9e 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeMDNSDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/discovery/BridgeMDNSDiscoveryParticipant.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * @author Matthias Siegele - Initial contribution * */ -@Component(service = MDNSDiscoveryParticipant.class, immediate = true) +@Component(service = MDNSDiscoveryParticipant.class) public class BridgeMDNSDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(BridgeMDNSDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsChannelTypeProvider.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsChannelTypeProvider.java index e8be98fdc..b57157b1f 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsChannelTypeProvider.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsChannelTypeProvider.java @@ -53,7 +53,7 @@ import org.osgi.service.component.annotations.Reference; * @author Matthias Siegele - Initial contribution * */ -@Component(service = ChannelTypeProvider.class, immediate = true) +@Component(service = ChannelTypeProvider.class) public class DsChannelTypeProvider extends BaseDsI18n implements ChannelTypeProvider { // channelID building (effect group type + (nothing || SEPERATOR + item type || SEPERATOR + extended item type) e.g. diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsDeviceThingTypeProvider.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsDeviceThingTypeProvider.java index 03fba9c42..88542d53a 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsDeviceThingTypeProvider.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/providers/DsDeviceThingTypeProvider.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; * @author Michael Ochel - initial contributer * @author Matthias Siegele - initial contributer */ -@Component(service = ThingTypeProvider.class, immediate = true) +@Component(service = ThingTypeProvider.class) public class DsDeviceThingTypeProvider extends BaseDsI18n implements ThingTypeProvider { /** diff --git a/bundles/org.openhab.binding.dlinksmarthome/src/main/java/org/openhab/binding/dlinksmarthome/internal/DLinkSmartHomeDiscoveryParticipant.java b/bundles/org.openhab.binding.dlinksmarthome/src/main/java/org/openhab/binding/dlinksmarthome/internal/DLinkSmartHomeDiscoveryParticipant.java index 4a1d7d476..2f0eb64c3 100644 --- a/bundles/org.openhab.binding.dlinksmarthome/src/main/java/org/openhab/binding/dlinksmarthome/internal/DLinkSmartHomeDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.dlinksmarthome/src/main/java/org/openhab/binding/dlinksmarthome/internal/DLinkSmartHomeDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; * @author Mike Major - Initial contribution * */ -@Component(immediate = true) +@Component public class DLinkSmartHomeDiscoveryParticipant implements MDNSDiscoveryParticipant { private static final String SERVICE_TYPE = "_dhnap._tcp.local."; diff --git a/bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/discovery/DSCAlarmBridgeDiscovery.java b/bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/discovery/DSCAlarmBridgeDiscovery.java index 38ed048d1..7090a9259 100644 --- a/bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/discovery/DSCAlarmBridgeDiscovery.java +++ b/bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/discovery/DSCAlarmBridgeDiscovery.java @@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory; * @author Russell Stephens - Initial Contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.dscalarm") +@Component(service = DiscoveryService.class, configurationPid = "discovery.dscalarm") public class DSCAlarmBridgeDiscovery extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(DSCAlarmBridgeDiscovery.class); diff --git a/bundles/org.openhab.binding.dwdpollenflug/src/main/java/org/openhab/binding/dwdpollenflug/internal/discovery/DWDPollenflugDiscoveryService.java b/bundles/org.openhab.binding.dwdpollenflug/src/main/java/org/openhab/binding/dwdpollenflug/internal/discovery/DWDPollenflugDiscoveryService.java index 53e5ba0e1..df8bec57a 100644 --- a/bundles/org.openhab.binding.dwdpollenflug/src/main/java/org/openhab/binding/dwdpollenflug/internal/discovery/DWDPollenflugDiscoveryService.java +++ b/bundles/org.openhab.binding.dwdpollenflug/src/main/java/org/openhab/binding/dwdpollenflug/internal/discovery/DWDPollenflugDiscoveryService.java @@ -30,7 +30,7 @@ import org.slf4j.LoggerFactory; * @author Johannes Ott - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.dwdpollenflug") +@Component(service = DiscoveryService.class, configurationPid = "discovery.dwdpollenflug") public class DWDPollenflugDiscoveryService extends AbstractDiscoveryService { private static final ThingUID BRIDGE_THING_UID = new ThingUID(THING_TYPE_BRIDGE, DWD); private static final int DISCOVER_TIMEOUT_SECONDS = 2; diff --git a/bundles/org.openhab.binding.enigma2/src/main/java/org/openhab/binding/enigma2/internal/discovery/Enigma2DiscoveryParticipant.java b/bundles/org.openhab.binding.enigma2/src/main/java/org/openhab/binding/enigma2/internal/discovery/Enigma2DiscoveryParticipant.java index 8c9053ea1..b25e025d2 100644 --- a/bundles/org.openhab.binding.enigma2/src/main/java/org/openhab/binding/enigma2/internal/discovery/Enigma2DiscoveryParticipant.java +++ b/bundles/org.openhab.binding.enigma2/src/main/java/org/openhab/binding/enigma2/internal/discovery/Enigma2DiscoveryParticipant.java @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory; * @author Guido Dolfen - Initial contribution */ @NonNullByDefault -@Component(service = MDNSDiscoveryParticipant.class, immediate = true) +@Component(service = MDNSDiscoveryParticipant.class) public class Enigma2DiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(Enigma2DiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/EtherRainHandlerFactory.java b/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/EtherRainHandlerFactory.java index 338b3eacf..1866c9186 100644 --- a/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/EtherRainHandlerFactory.java +++ b/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/EtherRainHandlerFactory.java @@ -32,7 +32,7 @@ import org.osgi.service.component.annotations.Reference; * * @author Joe Inkenbrandt - Initial contribution */ -@Component(service = ThingHandlerFactory.class, immediate = true, configurationPid = "binding.etherrain") +@Component(service = ThingHandlerFactory.class, configurationPid = "binding.etherrain") @NonNullByDefault public class EtherRainHandlerFactory extends BaseThingHandlerFactory { diff --git a/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/discovery/EtherrainDiscoveryService.java b/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/discovery/EtherrainDiscoveryService.java index 0c8bdbbc6..8222207e5 100644 --- a/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/discovery/EtherrainDiscoveryService.java +++ b/bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/discovery/EtherrainDiscoveryService.java @@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory; * @author Joe Inkenbrandt - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.etherrain") +@Component(service = DiscoveryService.class, configurationPid = "discovery.etherrain") public class EtherrainDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(EtherrainDiscoveryService.class); diff --git a/bundles/org.openhab.binding.feican/src/main/java/org/openhab/binding/feican/internal/FeicanDiscoveryService.java b/bundles/org.openhab.binding.feican/src/main/java/org/openhab/binding/feican/internal/FeicanDiscoveryService.java index 4b2bc7660..bbea2a141 100644 --- a/bundles/org.openhab.binding.feican/src/main/java/org/openhab/binding/feican/internal/FeicanDiscoveryService.java +++ b/bundles/org.openhab.binding.feican/src/main/java/org/openhab/binding/feican/internal/FeicanDiscoveryService.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * @author Hilbrand Bouwkamp - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.feican") +@Component(service = DiscoveryService.class, configurationPid = "discovery.feican") public class FeicanDiscoveryService extends AbstractDiscoveryService { private static final int DISCOVERY_TIMEOUT_SECONDS = 5; diff --git a/bundles/org.openhab.binding.fmiweather/src/main/java/org/openhab/binding/fmiweather/internal/discovery/FMIWeatherDiscoveryService.java b/bundles/org.openhab.binding.fmiweather/src/main/java/org/openhab/binding/fmiweather/internal/discovery/FMIWeatherDiscoveryService.java index ee93f357b..984c5d698 100644 --- a/bundles/org.openhab.binding.fmiweather/src/main/java/org/openhab/binding/fmiweather/internal/discovery/FMIWeatherDiscoveryService.java +++ b/bundles/org.openhab.binding.fmiweather/src/main/java/org/openhab/binding/fmiweather/internal/discovery/FMIWeatherDiscoveryService.java @@ -54,7 +54,7 @@ import org.slf4j.LoggerFactory; * @author Sami Salonen - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.fmiweather") +@Component(service = DiscoveryService.class, configurationPid = "discovery.fmiweather") public class FMIWeatherDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(FMIWeatherDiscoveryService.class); diff --git a/bundles/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/internal/discovery/FoldingSlotDiscoveryService.java b/bundles/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/internal/discovery/FoldingSlotDiscoveryService.java index 64e955e89..f8a93be16 100644 --- a/bundles/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/internal/discovery/FoldingSlotDiscoveryService.java +++ b/bundles/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/internal/discovery/FoldingSlotDiscoveryService.java @@ -33,7 +33,7 @@ import org.osgi.service.component.annotations.Component; * * @author Marius Bjoernstad - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.folding") +@Component(service = DiscoveryService.class, configurationPid = "discovery.folding") public class FoldingSlotDiscoveryService extends AbstractDiscoveryService { public FoldingSlotDiscoveryService() { diff --git a/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/discovery/FreeboxServerDiscoveryParticipant.java b/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/discovery/FreeboxServerDiscoveryParticipant.java index 7d38c5e59..b4859c1f7 100644 --- a/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/discovery/FreeboxServerDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/discovery/FreeboxServerDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; * * @author Laurent Garnier - Initial contribution */ -@Component(immediate = true) +@Component public class FreeboxServerDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(FreeboxServerDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.fsinternetradio/src/main/java/org/openhab/binding/fsinternetradio/internal/FSInternetRadioDiscoveryParticipant.java b/bundles/org.openhab.binding.fsinternetradio/src/main/java/org/openhab/binding/fsinternetradio/internal/FSInternetRadioDiscoveryParticipant.java index 4201bf219..e6a06f6c0 100644 --- a/bundles/org.openhab.binding.fsinternetradio/src/main/java/org/openhab/binding/fsinternetradio/internal/FSInternetRadioDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.fsinternetradio/src/main/java/org/openhab/binding/fsinternetradio/internal/FSInternetRadioDiscoveryParticipant.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * @author Mihaela Memova - removed the getLabel(RemoteDevice device) method due to its unreachable code lines * @author Markus Michels - support for Teufel 3sixty discovery */ -@Component(immediate = true) +@Component public class FSInternetRadioDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(FSInternetRadioDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java index 1185747b2..49bb8f4e3 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java +++ b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java @@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory; * * @author Mark Hilbush - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.globalcache") +@Component(service = DiscoveryService.class, configurationPid = "discovery.globalcache") public class GlobalCacheDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(GlobalCacheDiscoveryService.class); diff --git a/bundles/org.openhab.binding.gpstracker/src/main/java/org/openhab/binding/gpstracker/internal/discovery/TrackerDiscoveryService.java b/bundles/org.openhab.binding.gpstracker/src/main/java/org/openhab/binding/gpstracker/internal/discovery/TrackerDiscoveryService.java index 784f7e8e0..a431a614a 100644 --- a/bundles/org.openhab.binding.gpstracker/src/main/java/org/openhab/binding/gpstracker/internal/discovery/TrackerDiscoveryService.java +++ b/bundles/org.openhab.binding.gpstracker/src/main/java/org/openhab/binding/gpstracker/internal/discovery/TrackerDiscoveryService.java @@ -40,7 +40,7 @@ import org.osgi.service.component.annotations.Modified; */ @NonNullByDefault @Component(service = { DiscoveryService.class, - TrackerDiscoveryService.class }, immediate = true, configurationPid = "discovery.gpstracker") + TrackerDiscoveryService.class }, configurationPid = "discovery.gpstracker") public class TrackerDiscoveryService extends AbstractDiscoveryService { /** * Discovery timeout diff --git a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/GreeTranslationProvider.java b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/GreeTranslationProvider.java index a912a4483..bfdf92cf2 100644 --- a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/GreeTranslationProvider.java +++ b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/GreeTranslationProvider.java @@ -30,7 +30,7 @@ import org.osgi.service.component.annotations.Reference; * @author Markus Michels - Initial contribution */ @NonNullByDefault -@Component(service = GreeTranslationProvider.class, immediate = true, configurationPid = "localization.gree") +@Component(service = GreeTranslationProvider.class, configurationPid = "localization.gree") public class GreeTranslationProvider { private final Bundle bundle; diff --git a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDeviceFinder.java b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDeviceFinder.java index 26071e395..f72e12473 100644 --- a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDeviceFinder.java +++ b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDeviceFinder.java @@ -49,7 +49,7 @@ import com.google.gson.JsonSyntaxException; * @author Markus Michels - Refactoring, adapted to OH 2.5x */ @NonNullByDefault -@Component(service = GreeDeviceFinder.class, immediate = true, configurationPid = "devicefinder.gree") +@Component(service = GreeDeviceFinder.class, configurationPid = "devicefinder.gree") public class GreeDeviceFinder { private final Logger logger = LoggerFactory.getLogger(GreeDeviceFinder.class); private static final Gson gson = (new GsonBuilder()).create(); diff --git a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDiscoveryService.java b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDiscoveryService.java index 657c54d8c..48370155c 100644 --- a/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDiscoveryService.java +++ b/bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/discovery/GreeDiscoveryService.java @@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.gree") +@Component(service = DiscoveryService.class, configurationPid = "discovery.gree") public class GreeDiscoveryService extends AbstractDiscoveryService { private static final int TIMEOUT_SEC = 10; private final Logger logger = LoggerFactory.getLogger(GreeDiscoveryService.class); diff --git a/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/discovery/HarmonyHubDiscoveryService.java b/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/discovery/HarmonyHubDiscoveryService.java index aeef34c97..214c5a5ab 100644 --- a/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/discovery/HarmonyHubDiscoveryService.java +++ b/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/discovery/HarmonyHubDiscoveryService.java @@ -55,7 +55,7 @@ import org.slf4j.LoggerFactory; * @author Wouter Born - Add null annotations */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.harmonyhub") +@Component(service = DiscoveryService.class, configurationPid = "discovery.harmonyhub") public class HarmonyHubDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(HarmonyHubDiscoveryService.class); diff --git a/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryParticipant.java b/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryParticipant.java index 79d16ca7e..eb0578327 100644 --- a/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryParticipant.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * @author Andrew Fiddian-Green - Initial contribution */ @NonNullByDefault -@Component(immediate = true) +@Component public class HDPowerViewHubDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(HDPowerViewHubDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryService.java b/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryService.java index eb147688b..742fbfb79 100644 --- a/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryService.java +++ b/bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewHubDiscoveryService.java @@ -39,7 +39,7 @@ import jcifs.netbios.NbtAddress; * @author Andy Lintner - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.hdpowerview") +@Component(service = DiscoveryService.class, configurationPid = "discovery.hdpowerview") public class HDPowerViewHubDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(HDPowerViewHubDiscoveryService.class); diff --git a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java index ff1112cce..d1a398a94 100644 --- a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * @author Johannes Einig - Initial contribution */ @NonNullByDefault -@Component(service = UpnpDiscoveryParticipant.class, immediate = true, configurationPid = "discovery.heos") +@Component(service = UpnpDiscoveryParticipant.class, configurationPid = "discovery.heos") public class HeosDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(HeosDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/CcuDiscoveryService.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/CcuDiscoveryService.java index 68a53d66b..590edd2ae 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/CcuDiscoveryService.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/CcuDiscoveryService.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * * @author Gerhard Riegler - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.homematic") +@Component(service = DiscoveryService.class, configurationPid = "discovery.homematic") public class CcuDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(CcuDiscoveryService.class); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/HomegearDiscoveryParticipant.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/HomegearDiscoveryParticipant.java index e28878585..1b8716721 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/HomegearDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/HomegearDiscoveryParticipant.java @@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory; * * @author Gerhard Riegler - Initial contribution */ -@Component(immediate = true) +@Component public class HomegearDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(HomegearDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProviderImpl.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProviderImpl.java index a4a6d0f24..e03e47aa9 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProviderImpl.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProviderImpl.java @@ -34,7 +34,7 @@ import org.osgi.service.component.annotations.ReferencePolicy; * * @author Michael Reitler - Initial contribution */ -@Component(service = { HomematicChannelGroupTypeProvider.class, ChannelGroupTypeProvider.class }, immediate = true) +@Component(service = { HomematicChannelGroupTypeProvider.class, ChannelGroupTypeProvider.class }) public class HomematicChannelGroupTypeProviderImpl implements HomematicChannelGroupTypeProvider { private final Map channelGroupTypesByUID = new HashMap<>(); protected List homematicThingTypeExcluders = new CopyOnWriteArrayList<>(); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProviderImpl.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProviderImpl.java index a8e2cf07a..cdcb428af 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProviderImpl.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProviderImpl.java @@ -35,7 +35,7 @@ import org.osgi.service.component.annotations.ReferencePolicy; * @author Gerhard Riegler - Initial contribution * @author Michael Reitler - Added HomematicThingTypeExcluder */ -@Component(service = { HomematicChannelTypeProvider.class, ChannelTypeProvider.class }, immediate = true) +@Component(service = { HomematicChannelTypeProvider.class, ChannelTypeProvider.class }) public class HomematicChannelTypeProviderImpl implements HomematicChannelTypeProvider { private final Map channelTypesByUID = new HashMap<>(); protected List homematicThingTypeExcluders = new CopyOnWriteArrayList<>(); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProviderImpl.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProviderImpl.java index b213e8288..a0246ff3d 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProviderImpl.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProviderImpl.java @@ -35,7 +35,7 @@ import org.osgi.service.component.annotations.ReferencePolicy; * @author Gerhard Riegler - Initial contribution * @author Michael Reitler - Added HomematicThingTypeExcluder */ -@Component(service = { HomematicConfigDescriptionProvider.class, ConfigDescriptionProvider.class }, immediate = true) +@Component(service = { HomematicConfigDescriptionProvider.class, ConfigDescriptionProvider.class }) public class HomematicConfigDescriptionProviderImpl implements HomematicConfigDescriptionProvider { private Map configDescriptionsByURI = new HashMap<>(); protected List homematicThingTypeExcluders = new CopyOnWriteArrayList<>(); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProviderImpl.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProviderImpl.java index a94b9b152..6a2054f5c 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProviderImpl.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProviderImpl.java @@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.ReferencePolicy; * @author Gerhard Riegler - Initial contribution * @author Michael Reitler - Added HomematicThingTypeExcluder */ -@Component(service = { HomematicThingTypeProvider.class, ThingTypeProvider.class }, immediate = true) +@Component(service = { HomematicThingTypeProvider.class, ThingTypeProvider.class }) public class HomematicThingTypeProviderImpl implements HomematicThingTypeProvider { private Map thingTypesByUID = new HashMap<>(); protected List homematicThingTypeExcluders = new CopyOnWriteArrayList<>(); diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java index aef06ffe9..948ca9179 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java @@ -67,7 +67,7 @@ import org.slf4j.LoggerFactory; * * @author Gerhard Riegler - Initial contribution */ -@Component(immediate = true) +@Component public class HomematicTypeGeneratorImpl implements HomematicTypeGenerator { private final Logger logger = LoggerFactory.getLogger(HomematicTypeGeneratorImpl.class); private static URI configDescriptionUriChannel; diff --git a/bundles/org.openhab.binding.hpprinter/src/main/java/org/openhab/binding/hpprinter/internal/HPPrinterDiscoveryParticipant.java b/bundles/org.openhab.binding.hpprinter/src/main/java/org/openhab/binding/hpprinter/internal/HPPrinterDiscoveryParticipant.java index 1ce78bac2..7d13afe28 100644 --- a/bundles/org.openhab.binding.hpprinter/src/main/java/org/openhab/binding/hpprinter/internal/HPPrinterDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.hpprinter/src/main/java/org/openhab/binding/hpprinter/internal/HPPrinterDiscoveryParticipant.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * @author Stewart Cossey - Initial contribution */ @NonNullByDefault -@Component(immediate = true) +@Component public class HPPrinterDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(HPPrinterDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeDiscoveryParticipant.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeDiscoveryParticipant.java index 4f3a13a9d..1c47be34b 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeDiscoveryParticipant.java @@ -41,7 +41,7 @@ import org.osgi.service.component.annotations.Component; * @author Thomas Höfer - Added representation */ @NonNullByDefault -@Component(service = UpnpDiscoveryParticipant.class, immediate = true) +@Component(service = UpnpDiscoveryParticipant.class) public class HueBridgeDiscoveryParticipant implements UpnpDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeNupnpDiscovery.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeNupnpDiscovery.java index 860e732b0..9f0f8fcfa 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeNupnpDiscovery.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueBridgeNupnpDiscovery.java @@ -49,7 +49,7 @@ import com.google.gson.reflect.TypeToken; * @author Andre Fuechsel - make {@link #startScan()} asynchronous */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.hue") +@Component(service = DiscoveryService.class, configurationPid = "discovery.hue") public class HueBridgeNupnpDiscovery extends AbstractDiscoveryService { private static final String MODEL_NAME_PHILIPS_HUE = "Philips hue"; diff --git a/bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/HyperionDiscoveryParticipant.java b/bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/HyperionDiscoveryParticipant.java index 7e88d4cf4..c61fe7f1d 100644 --- a/bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/HyperionDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/HyperionDiscoveryParticipant.java @@ -34,7 +34,7 @@ import org.osgi.service.component.annotations.Component; * @author Daniel Walters - Initial contribution */ -@Component(immediate = true) +@Component public class HyperionDiscoveryParticipant implements MDNSDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraDiscoveryService.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraDiscoveryService.java index c4b4533de..0578ff7ae 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraDiscoveryService.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraDiscoveryService.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "binding.ipcamera") +@Component(service = DiscoveryService.class, configurationPid = "binding.ipcamera") public class IpCameraDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(IpCameraDiscoveryService.class); diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraHandlerFactory.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraHandlerFactory.java index 0f14591f4..73f7378e4 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraHandlerFactory.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraHandlerFactory.java @@ -35,7 +35,7 @@ import org.osgi.service.component.annotations.Reference; * * @author Matthew Skinner - Initial contribution */ -@Component(service = ThingHandlerFactory.class, immediate = true, configurationPid = "binding.ipcamera") +@Component(service = ThingHandlerFactory.class, configurationPid = "binding.ipcamera") @NonNullByDefault public class IpCameraHandlerFactory extends BaseThingHandlerFactory { private final @Nullable String openhabIpAddress; diff --git a/bundles/org.openhab.binding.ipp/src/main/java/org/openhab/binding/ipp/internal/discovery/IppPrinterDiscoveryParticipant.java b/bundles/org.openhab.binding.ipp/src/main/java/org/openhab/binding/ipp/internal/discovery/IppPrinterDiscoveryParticipant.java index e4f7a4dfc..8dc571d70 100644 --- a/bundles/org.openhab.binding.ipp/src/main/java/org/openhab/binding/ipp/internal/discovery/IppPrinterDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.ipp/src/main/java/org/openhab/binding/ipp/internal/discovery/IppPrinterDiscoveryParticipant.java @@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory; * * @author Tobias Bräutigam - Initial contribution */ -@Component(immediate = true) +@Component public class IppPrinterDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(IppPrinterDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/KM200ChannelTypeProvider.java b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/KM200ChannelTypeProvider.java index bb3740d3e..e96a02782 100644 --- a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/KM200ChannelTypeProvider.java +++ b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/KM200ChannelTypeProvider.java @@ -34,8 +34,7 @@ import org.osgi.service.component.annotations.Component; * * @author Markus Eckhardt - Initial contribution */ -@Component(service = { ChannelTypeProvider.class, ChannelGroupTypeProvider.class, - KM200ChannelTypeProvider.class }, immediate = true) +@Component(service = { ChannelTypeProvider.class, ChannelGroupTypeProvider.class, KM200ChannelTypeProvider.class }) @NonNullByDefault public class KM200ChannelTypeProvider implements ChannelTypeProvider, ChannelGroupTypeProvider { private final List channelTypes = new CopyOnWriteArrayList<>(); diff --git a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/discovery/KM200GatewayDiscoveryParticipant.java b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/discovery/KM200GatewayDiscoveryParticipant.java index 720ff8928..f7c45b695 100644 --- a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/discovery/KM200GatewayDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/discovery/KM200GatewayDiscoveryParticipant.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * @author Markus Eckhardt - Initial contribution */ @NonNullByDefault -@Component(immediate = true, configurationPid = "binding.km200") +@Component(configurationPid = "binding.km200") public class KM200GatewayDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(KM200GatewayDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/discovery/KodiUpnpDiscoveryParticipant.java b/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/discovery/KodiUpnpDiscoveryParticipant.java index 84e5feb86..9842b619b 100644 --- a/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/discovery/KodiUpnpDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/discovery/KodiUpnpDiscoveryParticipant.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * @author Paul Frank - Initial contribution * @author Christoph Weitkamp - Use "discovery.kodi:background=false" to disable discovery service */ -@Component(immediate = true, configurationPid = "discovery.kodi") +@Component(configurationPid = "discovery.kodi") @NonNullByDefault public class KodiUpnpDiscoveryParticipant implements UpnpDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.konnected/src/main/java/org/openhab/binding/konnected/internal/discovery/KonnectedUPnPServer.java b/bundles/org.openhab.binding.konnected/src/main/java/org/openhab/binding/konnected/internal/discovery/KonnectedUPnPServer.java index bfff2cba3..32bce2528 100644 --- a/bundles/org.openhab.binding.konnected/src/main/java/org/openhab/binding/konnected/internal/discovery/KonnectedUPnPServer.java +++ b/bundles/org.openhab.binding.konnected/src/main/java/org/openhab/binding/konnected/internal/discovery/KonnectedUPnPServer.java @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(service = UpnpDiscoveryParticipant.class, immediate = true) +@Component(service = UpnpDiscoveryParticipant.class) public class KonnectedUPnPServer implements UpnpDiscoveryParticipant { private Logger logger = LoggerFactory.getLogger(KonnectedUPnPServer.class); diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/GsonProvider.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/GsonProvider.java index 1196adfc0..4ecc58a96 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/GsonProvider.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/GsonProvider.java @@ -44,7 +44,7 @@ import com.google.gson.Gson; @Provider @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) -@Component(immediate = true) +@Component public class GsonProvider implements MessageBodyReader, MessageBodyWriter { private final Gson gson; diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/discovery/LaMetricTimeDiscoveryParticipant.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/discovery/LaMetricTimeDiscoveryParticipant.java index 7f5cb63e0..7f45f4283 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/discovery/LaMetricTimeDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/discovery/LaMetricTimeDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; * * @author Gregory Moyer - Initial contribution */ -@Component(immediate = true) +@Component public class LaMetricTimeDiscoveryParticipant implements UpnpDiscoveryParticipant { private Logger logger = LoggerFactory.getLogger(LaMetricTimeDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java b/bundles/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java index 0247de7ea..34c9d15ff 100644 --- a/bundles/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java +++ b/bundles/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java @@ -54,7 +54,7 @@ import com.thoughtworks.xstream.io.xml.StaxDriver; * @author Fabian Wolter - Initial Contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.lcn") +@Component(service = DiscoveryService.class, configurationPid = "discovery.lcn") public class LcnPchkDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(LcnPchkDiscoveryService.class); private static final String HOSTNAME = "hostname"; diff --git a/bundles/org.openhab.binding.leapmotion/src/main/java/org/openhab/binding/leapmotion/internal/discovery/LeapMotionDiscoveryService.java b/bundles/org.openhab.binding.leapmotion/src/main/java/org/openhab/binding/leapmotion/internal/discovery/LeapMotionDiscoveryService.java index 9aa542f97..434056109 100644 --- a/bundles/org.openhab.binding.leapmotion/src/main/java/org/openhab/binding/leapmotion/internal/discovery/LeapMotionDiscoveryService.java +++ b/bundles/org.openhab.binding.leapmotion/src/main/java/org/openhab/binding/leapmotion/internal/discovery/LeapMotionDiscoveryService.java @@ -35,7 +35,7 @@ import com.leapmotion.leap.Listener; * */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.leapmotion") +@Component(service = DiscoveryService.class, configurationPid = "discovery.leapmotion") public class LeapMotionDiscoveryService extends AbstractDiscoveryService { private @NonNullByDefault({}) Controller leapController; diff --git a/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/discovery/LGWebOSUpnpDiscoveryParticipant.java b/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/discovery/LGWebOSUpnpDiscoveryParticipant.java index ca4ddcd29..01ed058aa 100644 --- a/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/discovery/LGWebOSUpnpDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/discovery/LGWebOSUpnpDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * @author Sebastian Prehn - Initial contribution */ @NonNullByDefault -@Component(service = UpnpDiscoveryParticipant.class, immediate = true, configurationPid = "discovery.lgwebos.upnp") +@Component(service = UpnpDiscoveryParticipant.class, configurationPid = "discovery.lgwebos.upnp") public class LGWebOSUpnpDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(LGWebOSUpnpDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxChannelFactoryImpl.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxChannelFactoryImpl.java index dbda90c06..208f49a3f 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxChannelFactoryImpl.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxChannelFactoryImpl.java @@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.Reference; * @author Wouter Born - Add i18n support */ @NonNullByDefault -@Component(service = LifxChannelFactory.class, immediate = true) +@Component(service = LifxChannelFactory.class) public class LifxChannelFactoryImpl implements LifxChannelFactory { private static final String COLOR_ZONE_LABEL_KEY = "channel-type.lifx.colorzone.label"; diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxLightDiscovery.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxLightDiscovery.java index fef74d8af..8676b5f49 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxLightDiscovery.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxLightDiscovery.java @@ -59,7 +59,7 @@ import org.slf4j.LoggerFactory; * @author Karel Goderis - Rewrite for Firmware V2, and remove dependency on external libraries * @author Wouter Born - Discover light labels, improve locking, optimize packet handling */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.lifx") +@Component(service = DiscoveryService.class, configurationPid = "discovery.lifx") @NonNullByDefault public class LifxLightDiscovery extends AbstractDiscoveryService { diff --git a/bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputDiscoveryService.java b/bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputDiscoveryService.java index ca66390fa..6aedf78c8 100644 --- a/bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputDiscoveryService.java +++ b/bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputDiscoveryService.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * * @author Thomas Weißschuh - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.linuxinput") +@Component(service = DiscoveryService.class, configurationPid = "discovery.linuxinput") @NonNullByDefault public class LinuxInputDiscoveryService extends AbstractDiscoveryService { diff --git a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxDiscoveryParticipant.java b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxDiscoveryParticipant.java index c3f656526..5db6c4e03 100644 --- a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * @author Pawel Pieczul - Initial contribution * */ -@Component(immediate = true) +@Component public class LxDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(LxDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMcastBridgeDiscoveryService.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMcastBridgeDiscoveryService.java index da917df39..8e3797f83 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMcastBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMcastBridgeDiscoveryService.java @@ -50,7 +50,7 @@ import org.slf4j.LoggerFactory; * @author Bob Adair - Renamed and added bridge properties */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.lutron") +@Component(service = DiscoveryService.class, configurationPid = "discovery.lutron") public class LutronMcastBridgeDiscoveryService extends AbstractDiscoveryService { private static final int SCAN_INTERVAL_MINUTES = 30; diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java index 0372df794..c2001d87f 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java @@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory; * * @author Bob Adair - Initial contribution */ -@Component(immediate = true) +@Component @NonNullByDefault public class LutronMdnsBridgeDiscoveryService implements MDNSDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.max/src/main/java/org/openhab/binding/max/internal/discovery/MaxCubeBridgeDiscovery.java b/bundles/org.openhab.binding.max/src/main/java/org/openhab/binding/max/internal/discovery/MaxCubeBridgeDiscovery.java index b3c244312..7fb9f5348 100644 --- a/bundles/org.openhab.binding.max/src/main/java/org/openhab/binding/max/internal/discovery/MaxCubeBridgeDiscovery.java +++ b/bundles/org.openhab.binding.max/src/main/java/org/openhab/binding/max/internal/discovery/MaxCubeBridgeDiscovery.java @@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory; * * @author Marcel Verpaalen - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.max") +@Component(service = DiscoveryService.class, configurationPid = "discovery.max") public class MaxCubeBridgeDiscovery extends AbstractDiscoveryService { private static final String MAXCUBE_DISCOVER_STRING = "eQ3Max*\0**********I"; diff --git a/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/discovery/MieleMDNSDiscoveryParticipant.java b/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/discovery/MieleMDNSDiscoveryParticipant.java index 252cb5460..8879a83aa 100644 --- a/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/discovery/MieleMDNSDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/discovery/MieleMDNSDiscoveryParticipant.java @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory; * @author Martin Lepsy - Added check for Miele gateway for cleaner discovery * */ -@Component(immediate = true) +@Component public class MieleMDNSDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(MieleMDNSDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.mihome/src/main/java/org/openhab/binding/mihome/internal/discovery/XiaomiBridgeDiscoveryService.java b/bundles/org.openhab.binding.mihome/src/main/java/org/openhab/binding/mihome/internal/discovery/XiaomiBridgeDiscoveryService.java index acd083754..d918b401b 100644 --- a/bundles/org.openhab.binding.mihome/src/main/java/org/openhab/binding/mihome/internal/discovery/XiaomiBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.mihome/src/main/java/org/openhab/binding/mihome/internal/discovery/XiaomiBridgeDiscoveryService.java @@ -40,7 +40,7 @@ import com.google.gson.JsonObject; * @author Kuba Wolanin - logger fixes */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.mihome") +@Component(service = DiscoveryService.class, configurationPid = "discovery.mihome") public class XiaomiBridgeDiscoveryService extends AbstractDiscoveryService implements XiaomiSocketListener { private static final Set SUPPORTED_THING_TYPES = Collections.singleton(THING_TYPE_BRIDGE); diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java index e017a4036..4b279c214 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.miio") +@Component(service = DiscoveryService.class, configurationPid = "discovery.miio") public class MiIoDiscovery extends AbstractDiscoveryService { /** The refresh interval for background discovery */ diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscoveryParticipant.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscoveryParticipant.java index fd9489a7d..dad0bac7e 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscoveryParticipant.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(service = MDNSDiscoveryParticipant.class, immediate = true) +@Component(service = MDNSDiscoveryParticipant.class) public class MiIoDiscoveryParticipant implements MDNSDiscoveryParticipant { private final CloudConnector cloudConnector; diff --git a/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/discovery/MilightBridgeDiscovery.java b/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/discovery/MilightBridgeDiscovery.java index f282f7c39..3f8933ea2 100644 --- a/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/discovery/MilightBridgeDiscovery.java +++ b/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/discovery/MilightBridgeDiscovery.java @@ -57,7 +57,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.milight") +@Component(service = DiscoveryService.class, configurationPid = "discovery.milight") public class MilightBridgeDiscovery extends AbstractDiscoveryService implements Runnable { private final Logger logger = LoggerFactory.getLogger(MilightBridgeDiscovery.class); diff --git a/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/test/TestDiscovery.java b/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/test/TestDiscovery.java index 38a47200a..99159f30c 100644 --- a/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/test/TestDiscovery.java +++ b/bundles/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/test/TestDiscovery.java @@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory; * * @author David Graeff - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, enabled = false) +@Component(service = DiscoveryService.class, enabled = false) public class TestDiscovery extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(TestDiscovery.class); diff --git a/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftDiscoveryService.java b/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftDiscoveryService.java index 5f2318fb5..5e791925b 100644 --- a/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftDiscoveryService.java +++ b/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftDiscoveryService.java @@ -43,7 +43,7 @@ import rx.subscriptions.CompositeSubscription; * * @author Mattias Markehed - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.minecraft") +@Component(service = DiscoveryService.class, configurationPid = "discovery.minecraft") public class MinecraftDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(MinecraftDiscoveryService.class); diff --git a/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftMDNSDiscoveryParticipant.java b/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftMDNSDiscoveryParticipant.java index 83585ed0e..73b05ffab 100644 --- a/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftMDNSDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.minecraft/src/main/java/org/openhab/binding/minecraft/internal/discovery/MinecraftMDNSDiscoveryParticipant.java @@ -33,7 +33,7 @@ import org.osgi.service.component.annotations.Component; * * @author Mattias Markehed - Initial contribution */ -@Component(immediate = true) +@Component public class MinecraftMDNSDiscoveryParticipant implements MDNSDiscoveryParticipant { @Override diff --git a/bundles/org.openhab.binding.modbus.sunspec/src/main/java/org/openhab/binding/modbus/sunspec/internal/discovery/SunspecDiscoveryParticipant.java b/bundles/org.openhab.binding.modbus.sunspec/src/main/java/org/openhab/binding/modbus/sunspec/internal/discovery/SunspecDiscoveryParticipant.java index 708f395ec..3fc3a57eb 100644 --- a/bundles/org.openhab.binding.modbus.sunspec/src/main/java/org/openhab/binding/modbus/sunspec/internal/discovery/SunspecDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.modbus.sunspec/src/main/java/org/openhab/binding/modbus/sunspec/internal/discovery/SunspecDiscoveryParticipant.java @@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory; * @author Nagy Attila Gabor - initial contribution * */ -@Component(immediate = true) +@Component @NonNullByDefault public class SunspecDiscoveryParticipant implements ModbusDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.modbus/DEVELOPERS.md b/bundles/org.openhab.binding.modbus/DEVELOPERS.md index 482f93e25..bb47b999e 100644 --- a/bundles/org.openhab.binding.modbus/DEVELOPERS.md +++ b/bundles/org.openhab.binding.modbus/DEVELOPERS.md @@ -97,7 +97,7 @@ You will have to write a discovery participant class which implements the `Modbu ```java -@Component(immediate = true) +@Component @NonNullByDefault public class SunspecDiscoveryParticipant implements ModbusDiscoveryParticipant { ... diff --git a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusDiscoveryService.java b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusDiscoveryService.java index 628e17f90..73fed96e3 100644 --- a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusDiscoveryService.java +++ b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusDiscoveryService.java @@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory; * @author Nagy Attila Gabor - initial contribution * */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.modbus") +@Component(service = DiscoveryService.class, configurationPid = "discovery.modbus") @NonNullByDefault public class ModbusDiscoveryService extends AbstractDiscoveryService { diff --git a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/discovery/MPDDiscoveryParticipant.java b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/discovery/MPDDiscoveryParticipant.java index ec70c9090..41390d58a 100644 --- a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/discovery/MPDDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/discovery/MPDDiscoveryParticipant.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * */ @NonNullByDefault -@Component(immediate = true) +@Component public class MPDDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(MPDDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/discovery/HomeAssistantDiscovery.java b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/discovery/HomeAssistantDiscovery.java index c764a6230..56319555d 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/discovery/HomeAssistantDiscovery.java +++ b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/discovery/HomeAssistantDiscovery.java @@ -58,7 +58,7 @@ import com.google.gson.GsonBuilder; * * @author David Graeff - Initial contribution */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.mqttha") +@Component(service = DiscoveryService.class, configurationPid = "discovery.mqttha") @NonNullByDefault public class HomeAssistantDiscovery extends AbstractMQTTDiscovery { @SuppressWarnings("unused") diff --git a/bundles/org.openhab.binding.mqtt.homie/src/main/java/org/openhab/binding/mqtt/homie/internal/discovery/Homie300Discovery.java b/bundles/org.openhab.binding.mqtt.homie/src/main/java/org/openhab/binding/mqtt/homie/internal/discovery/Homie300Discovery.java index 4b0f0f8f4..d34608fa4 100644 --- a/bundles/org.openhab.binding.mqtt.homie/src/main/java/org/openhab/binding/mqtt/homie/internal/discovery/Homie300Discovery.java +++ b/bundles/org.openhab.binding.mqtt.homie/src/main/java/org/openhab/binding/mqtt/homie/internal/discovery/Homie300Discovery.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * * @author David Graeff - Initial contribution */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.mqtthomie") +@Component(service = DiscoveryService.class, configurationPid = "discovery.mqtthomie") @NonNullByDefault public class Homie300Discovery extends AbstractMQTTDiscovery { private final Logger logger = LoggerFactory.getLogger(Homie300Discovery.class); diff --git a/bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/internal/discovery/MqttServiceDiscoveryService.java b/bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/internal/discovery/MqttServiceDiscoveryService.java index a7a8c11b1..88a6ee8e3 100644 --- a/bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/internal/discovery/MqttServiceDiscoveryService.java +++ b/bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/internal/discovery/MqttServiceDiscoveryService.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * * @author David Graeff - Initial contribution */ -@Component(immediate = true, service = DiscoveryService.class, configurationPid = "discovery.systemmqttbroker") +@Component(service = DiscoveryService.class, configurationPid = "discovery.systemmqttbroker") public class MqttServiceDiscoveryService extends AbstractDiscoveryService implements MqttServiceObserver { private final Logger logger = LoggerFactory.getLogger(MqttServiceDiscoveryService.class); MqttService mqttService; diff --git a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/discovery/NanoleafMDNSDiscoveryParticipant.java b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/discovery/NanoleafMDNSDiscoveryParticipant.java index 7caf85b3a..df12a64e3 100644 --- a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/discovery/NanoleafMDNSDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/discovery/NanoleafMDNSDiscoveryParticipant.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * @see MSDN * Discovery */ -@Component(immediate = true, configurationPid = "discovery.nanoleaf") +@Component(configurationPid = "discovery.nanoleaf") @NonNullByDefault public class NanoleafMDNSDiscoveryParticipant implements MDNSDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.neeo/src/main/java/org/openhab/binding/neeo/internal/discovery/NeeoBrainDiscovery.java b/bundles/org.openhab.binding.neeo/src/main/java/org/openhab/binding/neeo/internal/discovery/NeeoBrainDiscovery.java index db18e1ba4..bfdb2b834 100644 --- a/bundles/org.openhab.binding.neeo/src/main/java/org/openhab/binding/neeo/internal/discovery/NeeoBrainDiscovery.java +++ b/bundles/org.openhab.binding.neeo/src/main/java/org/openhab/binding/neeo/internal/discovery/NeeoBrainDiscovery.java @@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory; * @author Tim Roberts - initial contribution */ @NonNullByDefault -@Component(immediate = true) +@Component public class NeeoBrainDiscovery implements MDNSDiscoveryParticipant { /** The logger */ diff --git a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/discovery/NetworkDiscoveryService.java b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/discovery/NetworkDiscoveryService.java index 3862fe194..7c1676d1b 100644 --- a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/discovery/NetworkDiscoveryService.java +++ b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/discovery/NetworkDiscoveryService.java @@ -53,7 +53,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Rewritten */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.network") +@Component(service = DiscoveryService.class, configurationPid = "discovery.network") public class NetworkDiscoveryService extends AbstractDiscoveryService implements PresenceDetectionListener { static final int PING_TIMEOUT_IN_MS = 500; static final int MAXIMUM_IPS_PER_INTERFACE = 255; diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/discovery/NikoHomeControlBridgeDiscoveryService.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/discovery/NikoHomeControlBridgeDiscoveryService.java index 81e4e9f58..9465cb1b4 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/discovery/NikoHomeControlBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/discovery/NikoHomeControlBridgeDiscoveryService.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * * @author Mark Herwege - Initial Contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.nikohomecontrol") +@Component(service = DiscoveryService.class, configurationPid = "discovery.nikohomecontrol") @NonNullByDefault public class NikoHomeControlBridgeDiscoveryService extends AbstractDiscoveryService { diff --git a/bundles/org.openhab.binding.ntp/src/main/java/org/openhab/binding/ntp/internal/discovery/NtpDiscovery.java b/bundles/org.openhab.binding.ntp/src/main/java/org/openhab/binding/ntp/internal/discovery/NtpDiscovery.java index 2a2acc142..507938b85 100644 --- a/bundles/org.openhab.binding.ntp/src/main/java/org/openhab/binding/ntp/internal/discovery/NtpDiscovery.java +++ b/bundles/org.openhab.binding.ntp/src/main/java/org/openhab/binding/ntp/internal/discovery/NtpDiscovery.java @@ -40,7 +40,7 @@ import org.osgi.service.component.annotations.Reference; * @author Marcel Verpaalen - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.ntp") +@Component(service = DiscoveryService.class, configurationPid = "discovery.ntp") public class NtpDiscovery extends AbstractDiscoveryService { private final TimeZoneProvider timeZoneProvider; diff --git a/bundles/org.openhab.binding.onewire/src/main/java/org/openhab/binding/onewire/internal/OwDynamicStateDescriptionProvider.java b/bundles/org.openhab.binding.onewire/src/main/java/org/openhab/binding/onewire/internal/OwDynamicStateDescriptionProvider.java index 02646d4e2..61f58ee05 100644 --- a/bundles/org.openhab.binding.onewire/src/main/java/org/openhab/binding/onewire/internal/OwDynamicStateDescriptionProvider.java +++ b/bundles/org.openhab.binding.onewire/src/main/java/org/openhab/binding/onewire/internal/OwDynamicStateDescriptionProvider.java @@ -34,8 +34,7 @@ import org.slf4j.LoggerFactory; * @author Jan N. Klug - Initial contribution */ @NonNullByDefault -@Component(service = { DynamicStateDescriptionProvider.class, - OwDynamicStateDescriptionProvider.class }, immediate = true) +@Component(service = { DynamicStateDescriptionProvider.class, OwDynamicStateDescriptionProvider.class }) public class OwDynamicStateDescriptionProvider implements DynamicStateDescriptionProvider { private final Map descriptions = new ConcurrentHashMap<>(); diff --git a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java index 7d0ecea0d..eb768decf 100644 --- a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * @author Paul Frank - Initial contribution */ @NonNullByDefault -@Component(immediate = true) +@Component public class OnkyoUpnpDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(OnkyoUpnpDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/discovery/OpenSprinklerDiscoveryService.java b/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/discovery/OpenSprinklerDiscoveryService.java index 9c046560a..70582868c 100644 --- a/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/discovery/OpenSprinklerDiscoveryService.java +++ b/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/discovery/OpenSprinklerDiscoveryService.java @@ -50,7 +50,7 @@ import org.slf4j.LoggerFactory; * * @author Chris Graham - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.opensprinkler") +@Component(service = DiscoveryService.class, configurationPid = "discovery.opensprinkler") public class OpenSprinklerDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(OpenSprinklerDiscoveryService.class); private static final Set SUPPORTED_THING_TYPES_UIDS = new HashSet<>( diff --git a/bundles/org.openhab.binding.orvibo/src/main/java/org/openhab/binding/orvibo/internal/discovery/SocketDiscoveryService.java b/bundles/org.openhab.binding.orvibo/src/main/java/org/openhab/binding/orvibo/internal/discovery/SocketDiscoveryService.java index 3f37e5704..b62799c17 100644 --- a/bundles/org.openhab.binding.orvibo/src/main/java/org/openhab/binding/orvibo/internal/discovery/SocketDiscoveryService.java +++ b/bundles/org.openhab.binding.orvibo/src/main/java/org/openhab/binding/orvibo/internal/discovery/SocketDiscoveryService.java @@ -39,7 +39,7 @@ import com.github.tavalin.s20.Socket; * * @author Daniel Walters - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.orvibo") +@Component(service = DiscoveryService.class, configurationPid = "discovery.orvibo") public class SocketDiscoveryService extends AbstractDiscoveryService implements SocketDiscoveryListener { private final Logger logger = LoggerFactory.getLogger(SocketDiscoveryService.class); diff --git a/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/discovery/PioneerAvrDiscoveryParticipant.java b/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/discovery/PioneerAvrDiscoveryParticipant.java index 814c28c19..ddfb5d2ba 100644 --- a/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/discovery/PioneerAvrDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/discovery/PioneerAvrDiscoveryParticipant.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; * * @author Antoine Besnard - Initial contribution */ -@Component(immediate = true) +@Component public class PioneerAvrDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(PioneerAvrDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/discovery/PulseaudioDiscoveryParticipant.java b/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/discovery/PulseaudioDiscoveryParticipant.java index 2847e58c6..f8d5deafe 100644 --- a/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/discovery/PulseaudioDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/discovery/PulseaudioDiscoveryParticipant.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * * @author Tobias Bräutigam - Initial contribution */ -@Component(immediate = true) +@Component public class PulseaudioDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(PulseaudioDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/discovery/RFXComBridgeDiscovery.java b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/discovery/RFXComBridgeDiscovery.java index ad6b2b053..af4c888b3 100644 --- a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/discovery/RFXComBridgeDiscovery.java +++ b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/discovery/RFXComBridgeDiscovery.java @@ -40,7 +40,7 @@ import jd2xx.JD2XX; * @author Pauli Anttila - Initial contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.rfxcom") +@Component(service = DiscoveryService.class, configurationPid = "discovery.rfxcom") public class RFXComBridgeDiscovery extends AbstractDiscoveryService { private static final long REFRESH_INTERVAL_IN_SECONDS = 600; diff --git a/bundles/org.openhab.binding.russound/src/main/java/org/openhab/binding/russound/internal/discovery/RioSystemDiscovery.java b/bundles/org.openhab.binding.russound/src/main/java/org/openhab/binding/russound/internal/discovery/RioSystemDiscovery.java index 691456318..f1ce1c056 100644 --- a/bundles/org.openhab.binding.russound/src/main/java/org/openhab/binding/russound/internal/discovery/RioSystemDiscovery.java +++ b/bundles/org.openhab.binding.russound/src/main/java/org/openhab/binding/russound/internal/discovery/RioSystemDiscovery.java @@ -48,7 +48,7 @@ import org.slf4j.LoggerFactory; * * @author Tim Roberts - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.russound") +@Component(service = DiscoveryService.class, configurationPid = "discovery.russound") public class RioSystemDiscovery extends AbstractDiscoveryService { /** The logger */ private final Logger logger = LoggerFactory.getLogger(RioSystemDiscovery.class); diff --git a/bundles/org.openhab.binding.sagercaster/src/main/java/org/openhab/binding/sagercaster/internal/discovery/SagerCasterDiscoveryService.java b/bundles/org.openhab.binding.sagercaster/src/main/java/org/openhab/binding/sagercaster/internal/discovery/SagerCasterDiscoveryService.java index ddfd9fb45..6db414cde 100644 --- a/bundles/org.openhab.binding.sagercaster/src/main/java/org/openhab/binding/sagercaster/internal/discovery/SagerCasterDiscoveryService.java +++ b/bundles/org.openhab.binding.sagercaster/src/main/java/org/openhab/binding/sagercaster/internal/discovery/SagerCasterDiscoveryService.java @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory; * @author Gaël L'hopital - Initial Contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.sagercaster") +@Component(service = DiscoveryService.class, configurationPid = "discovery.sagercaster") public class SagerCasterDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(SagerCasterDiscoveryService.class); private static final int DISCOVER_TIMEOUT_SECONDS = 30; diff --git a/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/discovery/SamsungTvDiscoveryParticipant.java b/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/discovery/SamsungTvDiscoveryParticipant.java index 503d338a8..f7fb8d838 100644 --- a/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/discovery/SamsungTvDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/discovery/SamsungTvDiscoveryParticipant.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * @author Arjan Mels - Changed to upnp.UpnpDiscoveryParticipant */ @NonNullByDefault -@Component(immediate = true) +@Component public class SamsungTvDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(SamsungTvDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java index 75f8ac3b7..29a5612ba 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java @@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory; * @author Markus Michels - Initial contribution */ @NonNullByDefault -@Component(service = HttpServlet.class, configurationPolicy = ConfigurationPolicy.OPTIONAL, immediate = true) +@Component(service = HttpServlet.class, configurationPolicy = ConfigurationPolicy.OPTIONAL) public class ShellyEventServlet extends HttpServlet { private static final long serialVersionUID = 549582869577534569L; private final Logger logger = LoggerFactory.getLogger(ShellyEventServlet.class); diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyDiscoveryParticipant.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyDiscoveryParticipant.java index 08febceff..620576e4f 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyDiscoveryParticipant.java @@ -58,7 +58,7 @@ import org.slf4j.LoggerFactory; * @author Markus Michels - Initial contribution */ @NonNullByDefault -@Component(service = MDNSDiscoveryParticipant.class, immediate = true) +@Component(service = MDNSDiscoveryParticipant.class) public class ShellyDiscoveryParticipant implements MDNSDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(ShellyDiscoveryParticipant.class); private final ShellyBindingConfiguration bindingConfig = new ShellyBindingConfiguration(); diff --git a/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/discovery/SilvercrestWifiSocketDiscoveryService.java b/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/discovery/SilvercrestWifiSocketDiscoveryService.java index 5ec44cb4a..4caaccffc 100644 --- a/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/discovery/SilvercrestWifiSocketDiscoveryService.java +++ b/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/discovery/SilvercrestWifiSocketDiscoveryService.java @@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory; * @author Jaime Vaz - Initial contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.silvercrestwifisocket") +@Component(service = DiscoveryService.class, configurationPid = "discovery.silvercrestwifisocket") public class SilvercrestWifiSocketDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(SilvercrestWifiSocketDiscoveryService.class); diff --git a/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/handler/SilvercrestWifiSocketMediatorImpl.java b/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/handler/SilvercrestWifiSocketMediatorImpl.java index a0dbe6e0a..c006210be 100644 --- a/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/handler/SilvercrestWifiSocketMediatorImpl.java +++ b/bundles/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/handler/SilvercrestWifiSocketMediatorImpl.java @@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory; * * @author Jaime Vaz - Initial contribution */ -@Component(service = SilvercrestWifiSocketMediator.class, immediate = true) +@Component(service = SilvercrestWifiSocketMediator.class) public class SilvercrestWifiSocketMediatorImpl implements SilvercrestWifiSocketMediator { private final Logger logger = LoggerFactory.getLogger(SilvercrestWifiSocketMediatorImpl.class); diff --git a/bundles/org.openhab.binding.sinope/src/main/java/org/openhab/binding/sinope/internal/SinopeHandlerFactory.java b/bundles/org.openhab.binding.sinope/src/main/java/org/openhab/binding/sinope/internal/SinopeHandlerFactory.java index 639f05ce1..0d7a891ab 100644 --- a/bundles/org.openhab.binding.sinope/src/main/java/org/openhab/binding/sinope/internal/SinopeHandlerFactory.java +++ b/bundles/org.openhab.binding.sinope/src/main/java/org/openhab/binding/sinope/internal/SinopeHandlerFactory.java @@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.Component; * * @author Pascal Larin - Initial contribution */ -@Component(service = ThingHandlerFactory.class, immediate = true) +@Component(service = ThingHandlerFactory.class) public class SinopeHandlerFactory extends BaseThingHandlerFactory { private static final Set SUPPORTED_THING_TYPES_UIDS = SinopeBindingConstants.SUPPORTED_THING_TYPES_UIDS; diff --git a/bundles/org.openhab.binding.smaenergymeter/src/main/java/org/openhab/binding/smaenergymeter/internal/discovery/SMAEnergyMeterDiscoveryService.java b/bundles/org.openhab.binding.smaenergymeter/src/main/java/org/openhab/binding/smaenergymeter/internal/discovery/SMAEnergyMeterDiscoveryService.java index 668cbef6c..73807171e 100644 --- a/bundles/org.openhab.binding.smaenergymeter/src/main/java/org/openhab/binding/smaenergymeter/internal/discovery/SMAEnergyMeterDiscoveryService.java +++ b/bundles/org.openhab.binding.smaenergymeter/src/main/java/org/openhab/binding/smaenergymeter/internal/discovery/SMAEnergyMeterDiscoveryService.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * * @author Osman Basha - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.smaenergymeter") +@Component(service = DiscoveryService.class, configurationPid = "discovery.smaenergymeter") public class SMAEnergyMeterDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(SMAEnergyMeterDiscoveryService.class); diff --git a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsHandlerFactory.java b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsHandlerFactory.java index 80270ece2..35273cd52 100644 --- a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsHandlerFactory.java +++ b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsHandlerFactory.java @@ -56,7 +56,7 @@ import com.google.gson.Gson; */ @NonNullByDefault @Component(service = { ThingHandlerFactory.class, - EventHandler.class }, immediate = true, configurationPid = "binding.smarthings", property = "event.topics=org/openhab/binding/smartthings/state") + EventHandler.class }, configurationPid = "binding.smarthings", property = "event.topics=org/openhab/binding/smartthings/state") public class SmartthingsHandlerFactory extends BaseThingHandlerFactory implements ThingHandlerFactory, EventHandler { private final Logger logger = LoggerFactory.getLogger(SmartthingsHandlerFactory.class); diff --git a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsServlet.java b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsServlet.java index b5613b6a2..44309b1ad 100644 --- a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsServlet.java +++ b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/SmartthingsServlet.java @@ -50,7 +50,7 @@ import com.google.gson.Gson; */ @NonNullByDefault @SuppressWarnings("serial") -@Component(immediate = true, service = HttpServlet.class) +@Component(service = HttpServlet.class) public class SmartthingsServlet extends HttpServlet { private static final String PATH = "/smartthings"; private final Logger logger = LoggerFactory.getLogger(SmartthingsServlet.class); diff --git a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/discovery/SmartthingsDiscoveryService.java b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/discovery/SmartthingsDiscoveryService.java index 9e97e0712..6982bc983 100644 --- a/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/discovery/SmartthingsDiscoveryService.java +++ b/bundles/org.openhab.binding.smartthings/src/main/java/org/openhab/binding/smartthings/internal/discovery/SmartthingsDiscoveryService.java @@ -49,7 +49,7 @@ import com.google.gson.Gson; */ @NonNullByDefault @Component(service = { DiscoveryService.class, - EventHandler.class }, immediate = true, configurationPid = "discovery.smartthings", property = "event.topics=org/openhab/binding/smartthings/discovery") + EventHandler.class }, configurationPid = "discovery.smartthings", property = "event.topics=org/openhab/binding/smartthings/discovery") public class SmartthingsDiscoveryService extends AbstractDiscoveryService implements EventHandler { private static final int DISCOVERY_TIMEOUT_SEC = 30; private static final int INITIAL_DELAY_SEC = 10; // Delay 10 sec to give time for bridge and things to be created diff --git a/bundles/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/internal/discovery/ZonePlayerDiscoveryParticipant.java b/bundles/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/internal/discovery/ZonePlayerDiscoveryParticipant.java index 257296156..ac88b75ff 100644 --- a/bundles/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/internal/discovery/ZonePlayerDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/internal/discovery/ZonePlayerDiscoveryParticipant.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * @author Karel Goderis - Initial contribution */ @NonNullByDefault -@Component(immediate = true) +@Component public class ZonePlayerDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(ZonePlayerDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/discovery/SonyAudioDiscoveryParticipant.java b/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/discovery/SonyAudioDiscoveryParticipant.java index 78f60f808..3c906906a 100644 --- a/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/discovery/SonyAudioDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/discovery/SonyAudioDiscoveryParticipant.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * * @author David Åberg - Initial contribution */ -@Component(immediate = true) +@Component public class SonyAudioDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(SonyAudioDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.spotify/src/main/java/org/openhab/binding/spotify/internal/SpotifyAuthService.java b/bundles/org.openhab.binding.spotify/src/main/java/org/openhab/binding/spotify/internal/SpotifyAuthService.java index 3888f7840..476dfe161 100644 --- a/bundles/org.openhab.binding.spotify/src/main/java/org/openhab/binding/spotify/internal/SpotifyAuthService.java +++ b/bundles/org.openhab.binding.spotify/src/main/java/org/openhab/binding/spotify/internal/SpotifyAuthService.java @@ -48,7 +48,7 @@ import org.slf4j.LoggerFactory; * @author Andreas Stenlund - Initial contribution * @author Hilbrand Bouwkamp - Made this the service class instead of only interface. Added templates */ -@Component(service = SpotifyAuthService.class, immediate = true, configurationPid = "binding.spotify.authService") +@Component(service = SpotifyAuthService.class, configurationPid = "binding.spotify.authService") @NonNullByDefault public class SpotifyAuthService { diff --git a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/discovery/SqueezeBoxServerDiscoveryParticipant.java b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/discovery/SqueezeBoxServerDiscoveryParticipant.java index 90f337ac8..94fc04ab3 100644 --- a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/discovery/SqueezeBoxServerDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/discovery/SqueezeBoxServerDiscoveryParticipant.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * @author Mark Hilbush - Add support for LMS authentication * */ -@Component(immediate = true) +@Component public class SqueezeBoxServerDiscoveryParticipant implements UpnpDiscoveryParticipant { private final Logger logger = LoggerFactory.getLogger(SqueezeBoxServerDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/discovery/SysteminfoDiscoveryService.java b/bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/discovery/SysteminfoDiscoveryService.java index fcc95309c..447974e81 100644 --- a/bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/discovery/SysteminfoDiscoveryService.java +++ b/bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/discovery/SysteminfoDiscoveryService.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * @author Wouter Born - Add null annotations */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.systeminfo") +@Component(service = DiscoveryService.class, configurationPid = "discovery.systeminfo") public class SysteminfoDiscoveryService extends AbstractDiscoveryService { public static final String DEFAULT_THING_ID = "unknown"; public static final String DEFAULT_THING_LABEL = "Local computer"; diff --git a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/discovery/TellstickBridgeDiscovery.java b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/discovery/TellstickBridgeDiscovery.java index 5e5b13582..362781a77 100644 --- a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/discovery/TellstickBridgeDiscovery.java +++ b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/discovery/TellstickBridgeDiscovery.java @@ -34,7 +34,7 @@ import org.tellstick.device.TellstickController; * @author Jarle Hjortland - Initial contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.tellstick") +@Component(service = DiscoveryService.class, configurationPid = "discovery.tellstick") public class TellstickBridgeDiscovery extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(TellstickBridgeDiscovery.class); diff --git a/bundles/org.openhab.binding.tesla/src/main/java/org/openhab/binding/tesla/internal/command/TeslaCommandExtension.java b/bundles/org.openhab.binding.tesla/src/main/java/org/openhab/binding/tesla/internal/command/TeslaCommandExtension.java index 98c9f5d07..1b673aa22 100644 --- a/bundles/org.openhab.binding.tesla/src/main/java/org/openhab/binding/tesla/internal/command/TeslaCommandExtension.java +++ b/bundles/org.openhab.binding.tesla/src/main/java/org/openhab/binding/tesla/internal/command/TeslaCommandExtension.java @@ -56,7 +56,7 @@ import com.google.gson.Gson; * @author Kai Kreuzer - refactored to use Tesla account thing */ @NonNullByDefault -@Component(service = ConsoleCommandExtension.class, immediate = true) +@Component(service = ConsoleCommandExtension.class) public class TeslaCommandExtension extends AbstractConsoleCommandExtension { private static final String CMD_LOGIN = "login"; diff --git a/bundles/org.openhab.binding.tradfri/src/main/java/org/openhab/binding/tradfri/internal/discovery/TradfriDiscoveryParticipant.java b/bundles/org.openhab.binding.tradfri/src/main/java/org/openhab/binding/tradfri/internal/discovery/TradfriDiscoveryParticipant.java index 0fb367225..fc338731a 100644 --- a/bundles/org.openhab.binding.tradfri/src/main/java/org/openhab/binding/tradfri/internal/discovery/TradfriDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.tradfri/src/main/java/org/openhab/binding/tradfri/internal/discovery/TradfriDiscoveryParticipant.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * * @author Kai Kreuzer - Initial contribution */ -@Component(service = MDNSDiscoveryParticipant.class, immediate = true) +@Component(service = MDNSDiscoveryParticipant.class) @NonNullByDefault public class TradfriDiscoveryParticipant implements MDNSDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/discovery/VeluxDiscoveryService.java b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/discovery/VeluxDiscoveryService.java index 6bf3f1471..8aa033d38 100644 --- a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/discovery/VeluxDiscoveryService.java +++ b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/discovery/VeluxDiscoveryService.java @@ -48,7 +48,7 @@ import org.slf4j.LoggerFactory; // // To-be-discussed: check whether an immediate activation is preferable. // Might be activated by: -// @Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.velux") +// @Component(service = DiscoveryService.class, configurationPid = "discovery.velux") // @NonNullByDefault @Component(service = DiscoveryService.class, configurationPid = "discovery.velux") diff --git a/bundles/org.openhab.binding.vitotronic/src/main/java/org/openhab/binding/vitotronic/internal/discovery/VitotronicBridgeDiscovery.java b/bundles/org.openhab.binding.vitotronic/src/main/java/org/openhab/binding/vitotronic/internal/discovery/VitotronicBridgeDiscovery.java index d5fc148aa..0bad5c190 100644 --- a/bundles/org.openhab.binding.vitotronic/src/main/java/org/openhab/binding/vitotronic/internal/discovery/VitotronicBridgeDiscovery.java +++ b/bundles/org.openhab.binding.vitotronic/src/main/java/org/openhab/binding/vitotronic/internal/discovery/VitotronicBridgeDiscovery.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * @author Stefan Andres - Initial contribution */ @NonNullByDefault -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.vitotronic") +@Component(service = DiscoveryService.class, configurationPid = "discovery.vitotronic") public class VitotronicBridgeDiscovery extends AbstractDiscoveryService { private int adapterPort = 31113; diff --git a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java index 82f2e66a7..f7e4cb8ba 100644 --- a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * @author Kai Kreuzer - some refactoring for performance and simplification * */ -@Component(service = UpnpDiscoveryParticipant.class, immediate = true) +@Component(service = UpnpDiscoveryParticipant.class) public class WemoDiscoveryParticipant implements UpnpDiscoveryParticipant { private Logger logger = LoggerFactory.getLogger(WemoDiscoveryParticipant.class); diff --git a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryService.java b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryService.java index 94452ff5c..0a43f532f 100644 --- a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryService.java +++ b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryService.java @@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory; * @author Hans-Jörg Merk - Initial contribution * */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.wemo") +@Component(service = DiscoveryService.class, configurationPid = "discovery.wemo") public class WemoDiscoveryService extends AbstractDiscoveryService { private Logger logger = LoggerFactory.getLogger(WemoDiscoveryService.class); diff --git a/bundles/org.openhab.binding.wifiled/src/main/java/org/openhab/binding/wifiled/internal/discovery/WiFiLEDDiscoveryService.java b/bundles/org.openhab.binding.wifiled/src/main/java/org/openhab/binding/wifiled/internal/discovery/WiFiLEDDiscoveryService.java index 89402e0fe..2b22e36cd 100644 --- a/bundles/org.openhab.binding.wifiled/src/main/java/org/openhab/binding/wifiled/internal/discovery/WiFiLEDDiscoveryService.java +++ b/bundles/org.openhab.binding.wifiled/src/main/java/org/openhab/binding/wifiled/internal/discovery/WiFiLEDDiscoveryService.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; * * @author Osman Basha - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.wifiled") +@Component(service = DiscoveryService.class, configurationPid = "discovery.wifiled") public class WiFiLEDDiscoveryService extends AbstractDiscoveryService { private static final int DEFAULT_BROADCAST_PORT = 48899; diff --git a/bundles/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/discovery/YamahaDiscoveryParticipant.java b/bundles/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/discovery/YamahaDiscoveryParticipant.java index d8bced5f6..c9bc67d2b 100644 --- a/bundles/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/discovery/YamahaDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/discovery/YamahaDiscoveryParticipant.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial contribution * @author Tomasz Maruszak - Introduced config object, migrated to newer UPnP api */ -@Component(immediate = true) +@Component @NonNullByDefault public class YamahaDiscoveryParticipant implements UpnpDiscoveryParticipant { diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java index dbd44d808..e40e7f235 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java @@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory; * * @author Coaster Li - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.yeelight") +@Component(service = DiscoveryService.class, configurationPid = "discovery.yeelight") public class YeelightDiscoveryService extends AbstractDiscoveryService implements DeviceListener { private final Logger logger = LoggerFactory.getLogger(YeelightDiscoveryService.class.getSimpleName()); diff --git a/bundles/org.openhab.binding.zway/src/main/java/org/openhab/binding/zway/internal/discovery/ZWayBridgeDiscoveryService.java b/bundles/org.openhab.binding.zway/src/main/java/org/openhab/binding/zway/internal/discovery/ZWayBridgeDiscoveryService.java index 28cbe89ff..ce6e2086d 100644 --- a/bundles/org.openhab.binding.zway/src/main/java/org/openhab/binding/zway/internal/discovery/ZWayBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.zway/src/main/java/org/openhab/binding/zway/internal/discovery/ZWayBridgeDiscoveryService.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; * * @author Patrick Hecker - Initial contribution */ -@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.zway") +@Component(service = DiscoveryService.class, configurationPid = "discovery.zway") public class ZWayBridgeDiscoveryService extends AbstractDiscoveryService { private final Logger logger = LoggerFactory.getLogger(getClass()); diff --git a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitImpl.java b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitImpl.java index 42229ff3a..9a7d86cd1 100644 --- a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitImpl.java +++ b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitImpl.java @@ -50,7 +50,7 @@ import io.github.hapjava.server.impl.HomekitServer; * * @author Andy Lintner - Initial contribution */ -@Component(immediate = true, service = { Homekit.class }, configurationPid = "org.openhab.homekit", property = { +@Component(service = { Homekit.class }, configurationPid = "org.openhab.homekit", property = { Constants.SERVICE_PID + "=org.openhab.homekit", "port:Integer=9123" }) @ConfigurableService(category = "io", label = "HomeKit Integration", description_uri = "io:homekit") @NonNullByDefault diff --git a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/HueEmulationService.java b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/HueEmulationService.java index 17773a252..ea1632db1 100644 --- a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/HueEmulationService.java +++ b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/HueEmulationService.java @@ -71,7 +71,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial Contribution */ @NonNullByDefault -@Component(immediate = true, service = HueEmulationService.class) +@Component(service = HueEmulationService.class) public class HueEmulationService implements EventHandler { public static final String CONFIG_PID = "org.openhab.hueemulation"; diff --git a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/HueHandlerFactory.java b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/HueHandlerFactory.java index 42c1df143..701a0794f 100644 --- a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/HueHandlerFactory.java +++ b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/HueHandlerFactory.java @@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial contribution */ @NonNullByDefault -@Component(immediate = true, service = ModuleHandlerFactory.class) +@Component(service = ModuleHandlerFactory.class) public class HueHandlerFactory extends BaseModuleHandlerFactory { private final Logger logger = LoggerFactory.getLogger(HueHandlerFactory.class); diff --git a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/RulesHandlerFactory.java b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/RulesHandlerFactory.java index 97f2a2b16..917f9d9a6 100644 --- a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/RulesHandlerFactory.java +++ b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/RulesHandlerFactory.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial contribution */ @NonNullByDefault -@Component(immediate = true, service = ModuleHandlerFactory.class) +@Component(service = ModuleHandlerFactory.class) public class RulesHandlerFactory extends BaseModuleHandlerFactory { private final Logger logger = LoggerFactory.getLogger(RulesHandlerFactory.class); diff --git a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/TimerModuleExHandlerFactory.java b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/TimerModuleExHandlerFactory.java index 60beacdf6..3862154a1 100644 --- a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/TimerModuleExHandlerFactory.java +++ b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/automation/TimerModuleExHandlerFactory.java @@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory; * @author David Graeff - Initial contribution */ @NonNullByDefault -@Component(immediate = true, service = ModuleHandlerFactory.class) +@Component(service = ModuleHandlerFactory.class) public class TimerModuleExHandlerFactory extends BaseModuleHandlerFactory { private final Logger logger = LoggerFactory.getLogger(TimerModuleExHandlerFactory.class); diff --git a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/ImperiHomeApiServlet.java b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/ImperiHomeApiServlet.java index 335aec753..fe5924e4f 100644 --- a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/ImperiHomeApiServlet.java +++ b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/ImperiHomeApiServlet.java @@ -61,7 +61,7 @@ import com.google.gson.GsonBuilder; * * @author Pepijn de Geus - Initial contribution */ -@Component(immediate = true, service = HttpServlet.class, configurationPid = "org.openhab.imperihome", // +@Component(service = HttpServlet.class, configurationPid = "org.openhab.imperihome", // property = Constants.SERVICE_PID + "=org.openhab.imperihome") @ConfigurableService(category = "io", label = "ImperiHome Integration", description_uri = "io:imperihome") public class ImperiHomeApiServlet extends HttpServlet { diff --git a/bundles/org.openhab.io.mqttembeddedbroker/src/main/java/org/openhab/io/mqttembeddedbroker/internal/EmbeddedBrokerService.java b/bundles/org.openhab.io.mqttembeddedbroker/src/main/java/org/openhab/io/mqttembeddedbroker/internal/EmbeddedBrokerService.java index a87cada20..3d294bacc 100644 --- a/bundles/org.openhab.io.mqttembeddedbroker/src/main/java/org/openhab/io/mqttembeddedbroker/internal/EmbeddedBrokerService.java +++ b/bundles/org.openhab.io.mqttembeddedbroker/src/main/java/org/openhab/io/mqttembeddedbroker/internal/EmbeddedBrokerService.java @@ -79,7 +79,7 @@ import io.netty.handler.ssl.SslContextBuilder; * * @author David Graeff - Initial contribution */ -@Component(immediate = true, service = EmbeddedBrokerService.class, configurationPid = Constants.PID, // +@Component(service = EmbeddedBrokerService.class, configurationPid = Constants.PID, // property = org.osgi.framework.Constants.SERVICE_PID + "=" + Constants.PID) @ConfigurableService(category = "MQTT", label = "MQTT Embedded Broker", description_uri = "mqtt:mqttembeddedbroker") @NonNullByDefault diff --git a/bundles/org.openhab.io.neeo/src/main/java/org/openhab/io/neeo/NeeoService.java b/bundles/org.openhab.io.neeo/src/main/java/org/openhab/io/neeo/NeeoService.java index 610079cec..056756faa 100644 --- a/bundles/org.openhab.io.neeo/src/main/java/org/openhab/io/neeo/NeeoService.java +++ b/bundles/org.openhab.io.neeo/src/main/java/org/openhab/io/neeo/NeeoService.java @@ -70,9 +70,9 @@ import org.slf4j.LoggerFactory; * @author Tim Roberts - Initial Contribution */ @NonNullByDefault -@Component(service = EventSubscriber.class, immediate = true, property = { - "service.pid=org.openhab.io.neeo.NeeoService", "service.config.description.uri=io:neeo", - "service.config.label=NEEO Integration", "service.config.category=io" }) +@Component(service = EventSubscriber.class, property = { "service.pid=org.openhab.io.neeo.NeeoService", + "service.config.description.uri=io:neeo", "service.config.label=NEEO Integration", + "service.config.category=io" }) public class NeeoService implements EventSubscriber, NetworkAddressChangeListener { /** The logger */ diff --git a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java index e7fce5abf..7f3f99998 100644 --- a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java +++ b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java @@ -70,7 +70,7 @@ import org.slf4j.LoggerFactory; * @author Victor Belov - Initial contribution * @author Kai Kreuzer - migrated code to new Jetty client and ESH APIs */ -@Component(immediate = true, service = { EventSubscriber.class, +@Component(service = { EventSubscriber.class, ActionService.class }, configurationPid = "org.openhab.openhabcloud", property = Constants.SERVICE_PID + "=org.openhab.openhabcloud") @ConfigurableService(category = "io", label = "openHAB Cloud", description_uri = "io:openhabcloud") diff --git a/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java b/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java index 3ab5bbbdc..4d75f9d08 100644 --- a/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java +++ b/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java @@ -84,7 +84,7 @@ import net.wimpi.modbus.net.ModbusSlaveConnection; * * @author Sami Salonen - Initial contribution */ -@Component(service = ModbusManager.class, immediate = true, configurationPid = "transport.modbus") +@Component(service = ModbusManager.class, configurationPid = "transport.modbus") @NonNullByDefault public class ModbusManagerImpl implements ModbusManager { diff --git a/bundles/org.openhab.transform.bin2json/src/main/java/org/openhab/transform/bin2json/internal/Bin2JsonTransformationService.java b/bundles/org.openhab.transform.bin2json/src/main/java/org/openhab/transform/bin2json/internal/Bin2JsonTransformationService.java index b5acc9b1a..0ac64510b 100644 --- a/bundles/org.openhab.transform.bin2json/src/main/java/org/openhab/transform/bin2json/internal/Bin2JsonTransformationService.java +++ b/bundles/org.openhab.transform.bin2json/src/main/java/org/openhab/transform/bin2json/internal/Bin2JsonTransformationService.java @@ -27,7 +27,7 @@ import org.slf4j.LoggerFactory; * @author Pauli Anttila - Initial contribution */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=BIN2JSON" }) +@Component(property = { "smarthome.transform=BIN2JSON" }) public class Bin2JsonTransformationService implements TransformationService { private Logger logger = LoggerFactory.getLogger(Bin2JsonTransformationService.class); diff --git a/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationService.java b/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationService.java index c3847bfc4..85e283447 100644 --- a/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationService.java +++ b/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationService.java @@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory; * @author Jan N. Klug - added command whitelist service */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=EXEC" }) +@Component(property = { "smarthome.transform=EXEC" }) public class ExecTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(ExecTransformationService.class); private final ExecTransformationWhitelistWatchService execTransformationWhitelistWatchService; diff --git a/bundles/org.openhab.transform.javascript/src/main/java/org/openhab/transform/javascript/internal/JavaScriptTransformationService.java b/bundles/org.openhab.transform.javascript/src/main/java/org/openhab/transform/javascript/internal/JavaScriptTransformationService.java index 10712e235..1864d3d91 100644 --- a/bundles/org.openhab.transform.javascript/src/main/java/org/openhab/transform/javascript/internal/JavaScriptTransformationService.java +++ b/bundles/org.openhab.transform.javascript/src/main/java/org/openhab/transform/javascript/internal/JavaScriptTransformationService.java @@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory; * @author Thomas Kordelle - pre compiled scripts */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=JS" }) +@Component(property = { "smarthome.transform=JS" }) public class JavaScriptTransformationService implements TransformationService { private Logger logger = LoggerFactory.getLogger(JavaScriptTransformationService.class); diff --git a/bundles/org.openhab.transform.jinja/src/main/java/org/openhab/transform/jinja/internal/JinjaTransformationService.java b/bundles/org.openhab.transform.jinja/src/main/java/org/openhab/transform/jinja/internal/JinjaTransformationService.java index 5dd7d8c46..3d7496dde 100644 --- a/bundles/org.openhab.transform.jinja/src/main/java/org/openhab/transform/jinja/internal/JinjaTransformationService.java +++ b/bundles/org.openhab.transform.jinja/src/main/java/org/openhab/transform/jinja/internal/JinjaTransformationService.java @@ -40,7 +40,7 @@ import com.hubspot.jinjava.Jinjava; * */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=JINJA" }) +@Component(property = { "smarthome.transform=JINJA" }) public class JinjaTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(JinjaTransformationService.class); diff --git a/bundles/org.openhab.transform.jsonpath/src/main/java/org/openhab/transform/jsonpath/internal/JSonPathTransformationService.java b/bundles/org.openhab.transform.jsonpath/src/main/java/org/openhab/transform/jsonpath/internal/JSonPathTransformationService.java index df406da6a..6d67bbc02 100644 --- a/bundles/org.openhab.transform.jsonpath/src/main/java/org/openhab/transform/jsonpath/internal/JSonPathTransformationService.java +++ b/bundles/org.openhab.transform.jsonpath/src/main/java/org/openhab/transform/jsonpath/internal/JSonPathTransformationService.java @@ -38,7 +38,7 @@ import com.jayway.jsonpath.PathNotFoundException; * */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=JSONPATH" }) +@Component(property = { "smarthome.transform=JSONPATH" }) public class JSonPathTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(JSonPathTransformationService.class); diff --git a/bundles/org.openhab.transform.map/src/main/java/org/openhab/transform/map/internal/MapTransformationService.java b/bundles/org.openhab.transform.map/src/main/java/org/openhab/transform/map/internal/MapTransformationService.java index 0f28556d5..342a116fe 100644 --- a/bundles/org.openhab.transform.map/src/main/java/org/openhab/transform/map/internal/MapTransformationService.java +++ b/bundles/org.openhab.transform.map/src/main/java/org/openhab/transform/map/internal/MapTransformationService.java @@ -30,7 +30,7 @@ import org.slf4j.LoggerFactory; * @author Kai Kreuzer - Initial contribution and API * @author Gaël L'hopital - Make it localizable */ -@Component(immediate = true, service = TransformationService.class, property = { "smarthome.transform=MAP" }) +@Component(service = TransformationService.class, property = { "smarthome.transform=MAP" }) public class MapTransformationService extends AbstractFileTransformationService { private final Logger logger = LoggerFactory.getLogger(MapTransformationService.class); diff --git a/bundles/org.openhab.transform.regex/src/main/java/org/openhab/transform/regex/internal/RegExTransformationService.java b/bundles/org.openhab.transform.regex/src/main/java/org/openhab/transform/regex/internal/RegExTransformationService.java index 188ef6d08..62bc5f0cb 100644 --- a/bundles/org.openhab.transform.regex/src/main/java/org/openhab/transform/regex/internal/RegExTransformationService.java +++ b/bundles/org.openhab.transform.regex/src/main/java/org/openhab/transform/regex/internal/RegExTransformationService.java @@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory; * @author Thomas.Eichstaedt-Engelen */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=REGEX" }) +@Component(property = { "smarthome.transform=REGEX" }) public class RegExTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(RegExTransformationService.class); diff --git a/bundles/org.openhab.transform.scale/src/main/java/org/openhab/transform/scale/internal/ScaleTransformationService.java b/bundles/org.openhab.transform.scale/src/main/java/org/openhab/transform/scale/internal/ScaleTransformationService.java index 3b6cb6998..f2f7b35d6 100644 --- a/bundles/org.openhab.transform.scale/src/main/java/org/openhab/transform/scale/internal/ScaleTransformationService.java +++ b/bundles/org.openhab.transform.scale/src/main/java/org/openhab/transform/scale/internal/ScaleTransformationService.java @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory; * @author Gaël L'hopital * @author Markus Rathgeb - drop usage of Guava */ -@Component(immediate = true, service = TransformationService.class, property = { "smarthome.transform=SCALE" }) +@Component(service = TransformationService.class, property = { "smarthome.transform=SCALE" }) public class ScaleTransformationService extends AbstractFileTransformationService> { private final Logger logger = LoggerFactory.getLogger(ScaleTransformationService.class); diff --git a/bundles/org.openhab.transform.xpath/src/main/java/org/openhab/transform/xpath/internal/XPathTransformationService.java b/bundles/org.openhab.transform.xpath/src/main/java/org/openhab/transform/xpath/internal/XPathTransformationService.java index 811c45d27..ba655e89e 100644 --- a/bundles/org.openhab.transform.xpath/src/main/java/org/openhab/transform/xpath/internal/XPathTransformationService.java +++ b/bundles/org.openhab.transform.xpath/src/main/java/org/openhab/transform/xpath/internal/XPathTransformationService.java @@ -38,7 +38,7 @@ import org.xml.sax.InputSource; * @author Thomas.Eichstaedt-Engelen */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=XPATH" }) +@Component(property = { "smarthome.transform=XPATH" }) public class XPathTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(XPathTransformationService.class); diff --git a/bundles/org.openhab.transform.xslt/src/main/java/org/openhab/transform/xslt/internal/XsltTransformationService.java b/bundles/org.openhab.transform.xslt/src/main/java/org/openhab/transform/xslt/internal/XsltTransformationService.java index 8653bc622..b228e5311 100644 --- a/bundles/org.openhab.transform.xslt/src/main/java/org/openhab/transform/xslt/internal/XsltTransformationService.java +++ b/bundles/org.openhab.transform.xslt/src/main/java/org/openhab/transform/xslt/internal/XsltTransformationService.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; * @author Thomas.Eichstaedt-Engelen */ @NonNullByDefault -@Component(immediate = true, property = { "smarthome.transform=XSLT" }) +@Component(property = { "smarthome.transform=XSLT" }) public class XsltTransformationService implements TransformationService { private final Logger logger = LoggerFactory.getLogger(XsltTransformationService.class);