<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2014-2016 by the respective copyright holders. All rights 
	reserved. This program and the accompanying materials are made available 
	under the terms of the Eclipse Public License v1.0 which accompanies this 
	distribution, and is available at http://www.eclipse.org/legal/epl-v10.html -->
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.training.electricity.tv.managedservice" activate="startConsuming" deactivate="stopConsuming" modified="modified">
	<implementation class="org.openhab.training.electricity.tv.managedservice.TVManagedService"/>
	<service>
		<provide interface="org.osgi.service.event.EventHandler"/>
		<provide interface="org.osgi.service.cm.ManagedService"/>
		<provide interface="org.openhab.training.electricity.consumer.ElectricityConsumer"/>
	</service>
	<property name="event.topics" value="org/openhab/training/time"/>
	<property name="service.pid" type="String" value="org.openhab.training.electricity.tv.managedservice"/>
	<reference bind="providerAdded" cardinality="1..n" interface="org.openhab.training.electricity.provider.ElectricityProvider" name="ElectricityProvider" policy="dynamic" unbind="providerRemoved"/>
</scr:component>
