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

OSGI-INF.blueprint.module.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ctx="http://www.springframework.org/schema/context"
	xmlns:osgix="http://www.eclipse.org/gemini/blueprint/schema/blueprint-compendium"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xsi:schemaLocation="
		http://www.osgi.org/xmlns/blueprint/v1.0.0
		http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
		http://www.eclipse.org/gemini/blueprint/schema/blueprint-compendium
		http://www.eclipse.org/gemini/blueprint/schema/blueprint-compendium/gemini-blueprint-compendium.xsd
		http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
		http://www.springframework.org/schema/context
		http://www.springframework.org/schema/context/spring-context-4.2.xsd">

	<reference id="eventMessageRegistrar" interface="net.solarnetwork.node.service.EventMessageRegistrar"/>

	<!-- 
		Map Metric entity events into messages
	 -->

	<bean id="messageRegistration" class="net.solarnetwork.node.service.support.EventMessageRegistration" 
			init-method="serviceDidStartup" destroy-method="serviceDidShutdown">
		<argument ref="eventMessageRegistrar"/>
		<property name="topicMappings">
			<map>
				<entry key="net/solarnetwork/dao/Metric/STORED" value="metric/stored/{name}"/>
			</map>
		</property>
		<property name="eventExtractors">
			<map>
				<entry key="net/solarnetwork/dao/Metric/STORED">
					<bean class="net.solarnetwork.node.metrics.service.MetricEventDataExtractor"/>
				</entry>
			</map>
		</property>
	</bean>

</blueprint>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy