META-INF.spring.context.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="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 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <context:annotation-config/> <context:component-scan base-package="org.meridor.perspective"/> <aop:aspectj-autoproxy/> <!-- Properties --> <util:properties id="properties" location="classpath:rest.properties"/> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="ignoreResourceNotFound" value="true"/> <property name="ignoreUnresolvablePlaceholders" value="true"/> <property name="properties" ref="properties"/> </bean> <!-- Settings provider --> <bean id="settingsProvider" class="org.meridor.perspective.backend.config.impl.PropertiesSettingsProvider"> <constructor-arg ref="properties"/> </bean> <!-- Hazelcast client --> <bean id="hazelcastClient" class="com.hazelcast.client.HazelcastClient" factory-method="newHazelcastClient"> <constructor-arg> <bean class="com.hazelcast.client.config.ClientConfig"> <property name="groupConfig"> <bean class="com.hazelcast.config.GroupConfig"> <property name="name" value="${perspective.storage.group.name}"/> <property name="password" value="${perspective.storage.group.password}"/> </bean> </property> <property name="networkConfig"> <bean class="com.hazelcast.client.config.ClientNetworkConfig"> <property name="addresses"> <bean factory-bean="settingsProvider" factory-method="getList"> <constructor-arg value="perspective.storage.hosts"/> </bean> </property> </bean> </property> <property name="properties"> <props> <prop key="hazelcast.logging.type">slf4j</prop> </props> </property> </bean> </constructor-arg> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy