usergrid-services.0.0.26.source-code.usergrid-services-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of usergrid-services Show documentation
Show all versions of usergrid-services Show documentation
Service layer for Usergrid system.
<?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:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> <context:component-scan base-package="org.usergrid.services" /> <import resource="classpath:/usergrid-core-context.xml" /> <import resource="classpath:/usergrid-scheduler-context.xml" /> <!-- scan for security --> <context:component-scan base-package="org.usergrid.security.crypto" /> <bean id="realm" class="org.usergrid.security.shiro.Realm"> <property name="name" value="realm" /> </bean> <bean id="securityManager" class="org.apache.shiro.mgt.DefaultSecurityManager"> <property name="realm" ref="realm" /> </bean> <bean id="lifecycleBeanPostProcessor" class="org.apache.shiro.spring.LifecycleBeanPostProcessor" /> <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="staticMethod" value="org.apache.shiro.SecurityUtils.setSecurityManager" /> <property name="arguments" ref="securityManager" /> </bean> <bean id="taskExecutor" class="org.springframework.core.task.SyncTaskExecutor"/> <bean id="tokenService" class="org.usergrid.security.tokens.cassandra.TokenServiceImpl"> <property name="cassandraService" ref="cassandraService"/> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> <bean id="managementService" class="org.usergrid.management.cassandra.ManagementServiceImpl" > <property name="saltProvider" ref="saltProvider"/> </bean> <bean id="saltProvider" class="org.usergrid.security.salt.NoOpSaltProvider" /> <bean id="serviceManagerFactory" class="org.usergrid.services.ServiceManagerFactory"> <constructor-arg ref="entityManagerFactory" /> <constructor-arg ref="properties" /> <constructor-arg ref="schedulerService"/> <constructor-arg ref="lockManager"/> </bean> <bean id="applicationCreator" class="org.usergrid.management.cassandra.ApplicationCreatorImpl"> <constructor-arg ref="entityManagerFactory" /> <constructor-arg ref="managementService" /> </bean> <bean id="signInProviderFactory" class="org.usergrid.security.providers.SignInProviderFactory"> <property name="entityManagerFactory" ref="entityManagerFactory"/> <property name="managementService" ref="managementService"/> </bean> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy