uth.oauth2-client.1.9.source-code.oauth2-client-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oauth2-client Show documentation
Show all versions of oauth2-client Show documentation
Implements OAuth2 authentication on top of Open-Server security
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- * Spring context to define the Service and Controller beans. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" default-init-method="init"> <import resource="classpath:/oauth2-client-dao.xml"/> <bean id="connectionService" class="com.wadpam.oauth2.service.ConnectionServiceImpl"> <property name="dConnectionDao" ref="dConnectionDao" /> </bean> <bean id="factoryService" class="com.wadpam.oauth2.service.FactoryService"> <property name="dFactoryDao" ref="dFactoryDao" /> </bean> <bean id="oauth2Service" class="com.wadpam.oauth2.service.OAuth2ServiceImpl"> <property name="dConnectionDao" ref="dConnectionDao" /> <property name="factoryService" ref="factoryService" /> <property name="oauth2UserService" ref="oauth2UserService" /> </bean> <bean id="connectionController" class="com.wadpam.oauth2.web.ConnectionController"> <property name="connectionService" ref="connectionService" /> </bean> <bean id="factoryController" class="com.wadpam.oauth2.web.FactoryController"> <property name="factoryService" ref="factoryService" /> </bean> <bean id="oauth2Controller" class="com.wadpam.oauth2.web.OAuth2Controller"> <property name="service" ref="oauth2Service" /> </bean> <beans profile="itest"> <!-- to create an itest connection factory in the factory service --> <bean id="itestFactoryFactory" class="com.wadpam.oauth2.itest.IntegrationTestConnectionFactory" init-method="init"> <property name="factoryService" ref="factoryService" /> </bean> </beans> </beans>