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:
committed by
GitHub
parent
f06068a189
commit
003c3af985
@@ -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<>();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user