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

parancoe-plugin-dwr.2.0.4.source-code.parancoe-plugin.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2008 The Parancoe Team

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:parancoe="http://www.parancoe.org/schema/parancoe"
       xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
        http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd
        http://www.parancoe.org/schema/parancoe http://www.parancoe.org/schema/parancoe.xsd">
    
    <!-- Authomatic discovering of components, persistent classes and DAOs -->
    <context:component-scan base-package="org.parancoe.plugin.dwr"/>
    <!--parancoe:discover-persistent-classes basePackage="org.parancoe.plugin.dwr"/-->
    <!--parancoe:define-daos basePackage="org.parancoe.plugin.dwr"/-->

    <!-- begin dwr section -->
    <dwr:controller id="dwrController" debug="true"/>

    <dwr:annotation-config />

    <bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"></bean>
    
    <bean id="dwrHandlerMapping" class="org.directwebremoting.spring.DwrHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />  
        <property name="urlMap">
            <map>
                <entry key="/dwr/**/*"><ref bean="dwrController"/></entry>                          
            </map>
        </property>
        <property name="interceptors">
            <list>
                <!--  secured interceptor  -->
                <ref bean="parancoeOpenSessionInViewInterceptor"/>
                <ref bean="pluginInterceptor"/>
                <ref bean="localeChangeInterceptor"/>
                <ref bean="languageInterceptor"/>                
            </list>
        </property>
    </bean>
    
    <dwr:configuration></dwr:configuration>
    
<!--
    <bean id="dwrvalidator" class="org.parancoe.web.validation.DWRAnnotationValidator">
        <property name="configurationLoader" ref="configurationLoader"/>
        <dwr:remote javascript="dwrvalidator">
            <dwr:include method="validateDWR"/>
        </dwr:remote>
    </bean>
    
    <dwr:configuration>
        <dwr:convert type="bean" class="org.parancoe.web.validation.DWRAnnotationValidator" />        
    </dwr:configuration>
-->    
    <!-- end dwr section -->
    
    <!--                           -->
    <!-- Plugin configuration      -->
    <!--                           -->
    <bean id="parancoe-plugin-dwrPluginConfig" class="org.parancoe.web.plugin.WebPlugin">
        <property name="name" value="parancoe-plugin-dwr"/>
        <property name="interceptors">
            <list>
                <!--
                <ref bean="parancoe-plugin-dwrSampleInterceptor"/>
                -->
            </list>
        </property>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy