osgi.iPOJOProducerWB.1.0.12.source-code.metadata.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iPOJOProducerWB Show documentation
Show all versions of iPOJOProducerWB Show documentation
Sample of producer using iPOJO
<?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