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

uth.oauth2-client.1.9.source-code.oauth2-client-context.xml Maven / Gradle / Ivy

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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy