Remove immediate = true from all Components (#8615)

We recommend not to use this on add-ons.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
Hilbrand Bouwkamp
2020-10-02 05:27:01 +02:00
committed by GitHub
parent f06068a189
commit 003c3af985
153 changed files with 155 additions and 157 deletions

View File

@@ -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<ChannelType> channelTypes = new CopyOnWriteArrayList<>();

View File

@@ -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);