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
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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<ChannelGroupTypeUID, ChannelGroupType> channelGroupTypesByUID = new HashMap<>();
|
||||
protected List<HomematicThingTypeExcluder> homematicThingTypeExcluders = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -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<ChannelTypeUID, ChannelType> channelTypesByUID = new HashMap<>();
|
||||
protected List<HomematicThingTypeExcluder> homematicThingTypeExcluders = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -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<URI, ConfigDescription> configDescriptionsByURI = new HashMap<>();
|
||||
protected List<HomematicThingTypeExcluder> homematicThingTypeExcluders = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -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<ThingTypeUID, ThingType> thingTypesByUID = new HashMap<>();
|
||||
protected List<HomematicThingTypeExcluder> homematicThingTypeExcluders = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user