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

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

View File

@@ -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 {