OSGI-INF.blueprint.module.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of net.solarnetwork.node.location.ws Show documentation
Show all versions of net.solarnetwork.node.location.ws Show documentation
Service to find location details, such as price or weather locations, and associate the location to collected data.
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"> <!-- Configuration --> <osgix:cm-properties id="ws.cfg" persistent-id="net.solarnetwork.node.location.ws.ws"> <beans:prop key="WebServiceLocationService.cacheTtl">14400000</beans:prop> </osgix:cm-properties> <!-- Referenced Services --> <reference id="identityService" availability="optional" interface="net.solarnetwork.node.service.IdentityService"/> <reference id="settingDao" interface="net.solarnetwork.node.dao.SettingDao"/> <reference id="objectMapperService" interface="net.solarnetwork.service.ObjectMapperService" filter="(function=node)"/> <bean id="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper" factory-ref="objectMapperService" factory-method="getObjectMapper"/> <!-- Published Services --> <service ref="wsLocationServiceService" ranking="1"> <interfaces> <value>net.solarnetwork.node.service.LocationService</value> <value>net.solarnetwork.settings.SettingSpecifierProvider</value> </interfaces> </service> <!-- Supporting Services --> <ctx:property-placeholder properties-ref="ws.cfg"/> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basenames"> <array> <value>net.solarnetwork.node.location.ws.WebServiceLocationService</value> </array> </property> </bean> <bean id="wsLocationServiceService" class="net.solarnetwork.node.location.ws.WebServiceLocationService" init-method="startup"> <argument ref="settingDao"/> <property name="messageSource" ref="messageSource"/> <property name="objectMapper" ref="objectMapper"/> <property name="identityService" ref="identityService"/> <property name="sslService"> <bean class="net.solarnetwork.common.osgi.service.DynamicServiceTracker"> <argument ref="bundleContext"/> <property name="serviceClassName" value="net.solarnetwork.service.SSLService"/> <property name="sticky" value="true"/> </bean> </property> <property name="cacheTtl" value="${WebServiceLocationService.cacheTtl}"/> </bean> </blueprint>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy