Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<ipojo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/1.2.0/core.xsd"
	xmlns="org.apache.felix.ipojo">
	<!-- The creator component is tracking new low devices to adapt them -->
	<component name="DeviceAdapterCreatorComponent" classname="fr.velossity.sample.adapter.device.impl.DeviceAdapterCreator" public="false" immediate="true">
    	<requires optional="true">
        	<callback method="bindLowDevice" type="bind"/>
        	<callback method="unbindLowDevice" type="unbind"/>
    	</requires>
    
    	<requires field="deviceFactory" from="deviceAdapterComponent"/>
	</component>

	<!-- Instantiation of the creator -->
	<instance component="DeviceAdapterCreatorComponent" name="deviceAdapterCreator"/>
		
	<!-- Defining the DeviceAdapterComponent -->
	<component classname="fr.velossity.sample.adapter.device.impl.DeviceAdapterImpl"  name="deviceAdapterComponent" immediate="true">
		<provides specifications="{fr.velossity.sample.device.Device}">
			<property method="getIdentifier" type="String" name="identifier"/>
		</provides>
		<properties>
			<property field="lowDevice" name="low.device"/>
		</properties>    
	</component>
	
</ipojo>
New to GrepCode? Check out our FAQ X