Source

osgi-blueprint-tutorial / hascode-blueprint-bundle / src / main / resources / OSGI-INF / blueprint / blueprint.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
	<bean id="bundle-activator" class="com.hascode.tutorial.hascode_blueprint_bundle.Activator"/>
	
	<reference id="sampleService" availability="mandatory" activation="eager" interface="com.hascode.tutorial.hascode_osgi_service.api.SampleService">
		<reference-listener ref="bundle-activator" bind-method="onBindService" unbind-method="onUnbindService"/>
	</reference>
</blueprint>