All Downloads are FREE. Search and download functionalities are using the official Maven repository.

osgi.iPOJOProducerWB.1.0.12.source-code.metadata.xml Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
<?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">
	<component
		classname="fr.velossity.sample.device.impl.MockDeviceImpl"
		name="MockDeviceComponent" immediate="true">
		<provides specifications="{fr.velossity.sample.device.Device}">
			<property field="identifier"/>
		</provides> 
		
		<!-- declare the dependency to the consumer with identifier starting with consumer1 -->
		<requires optional="false" policy="static" field="myMeasurementHandler" filter="(identifier=consumer1*)">
		</requires>
		    
		 <!-- lifecycle methods -->
		<callback transition="validate" method="activate"/>
		<callback transition="invalidate" method="deactivate"/>
		    
	</component>
	<instance component="MockDeviceComponent" name="mockDevice1">
		<property name="identifier" value="producer1-ipojo"/>
	</instance>
</ipojo>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy