polish
This commit is contained in:
@@ -1,13 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans
|
http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
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.springframework.org/schema/tx
|
http://www.springframework.org/schema/tx
|
||||||
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
|
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
|
||||||
|
|
||||||
|
<!-- Activates annotation-based bean configuration -->
|
||||||
|
<context:annotation-config />
|
||||||
|
|
||||||
|
<!-- Scans for application @Components to deploy -->
|
||||||
|
<context:component-scan base-package="org.springframework.webflow.samples.booking" />
|
||||||
|
|
||||||
<!-- Instructs Spring to perfrom declarative transaction managemenet on annotated classes -->
|
<!-- Instructs Spring to perfrom declarative transaction managemenet on annotated classes -->
|
||||||
<tx:annotation-driven />
|
<tx:annotation-driven />
|
||||||
|
|
||||||
@@ -1,21 +1,56 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
xmlns:webflow="http://www.springframework.org/schema/webflow-config"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans
|
http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/webflow-config
|
||||||
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd">
|
||||||
|
|
||||||
<!-- Activates annotation-based bean configuration -->
|
<!-- Maps portlet modes to handlers -->
|
||||||
<context:annotation-config />
|
<bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping">
|
||||||
|
<property name="portletModeMap">
|
||||||
|
<map>
|
||||||
|
<entry key="view">
|
||||||
|
<bean class="org.springframework.webflow.samples.booking.ViewFlowHandler" />
|
||||||
|
</entry>
|
||||||
|
</map>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- Maps logical view names selected by the url filename controller to .jsp view templates within the /WEB-INF directory -->
|
||||||
|
<bean id="internalJspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||||
|
<property name="prefix" value="/WEB-INF/" />
|
||||||
|
<property name="suffix" value=".jsp" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
<!-- Scans for application @Components to deploy -->
|
<!-- Enables FlowHandlers -->
|
||||||
<context:component-scan base-package="org.springframework.webflow.samples.booking" />
|
<bean class="org.springframework.webflow.mvc.portlet.FlowHandlerAdapter">
|
||||||
|
<property name="flowExecutor" ref="flowExecutor"/>
|
||||||
<!-- Imports the configurations of the different infrastructure systems of the application -->
|
</bean>
|
||||||
<import resource="webmvc-config.xml" />
|
|
||||||
<import resource="webflow-config.xml" />
|
|
||||||
|
|
||||||
|
<!-- Executes flows: the central entry point into the Spring Web Flow system -->
|
||||||
|
<webflow:flow-executor id="flowExecutor">
|
||||||
|
<webflow:flow-execution-attributes>
|
||||||
|
<webflow:always-redirect-on-pause value="false"/>
|
||||||
|
</webflow:flow-execution-attributes>
|
||||||
|
<webflow:flow-execution-listeners>
|
||||||
|
<webflow:listener ref="jpaFlowExecutionListener" />
|
||||||
|
</webflow:flow-execution-listeners>
|
||||||
|
</webflow:flow-executor>
|
||||||
|
|
||||||
|
<!-- The registry of executable flow definitions -->
|
||||||
|
<webflow:flow-registry id="flowRegistry">
|
||||||
|
<webflow:flow-location path="/WEB-INF/flows/view/view.xml" />
|
||||||
|
<webflow:flow-location path="/WEB-INF/flows/main/main.xml" />
|
||||||
|
<webflow:flow-location path="/WEB-INF/flows/booking/booking.xml" />
|
||||||
|
</webflow:flow-registry>
|
||||||
|
|
||||||
|
<!-- Installs a listener that manages JPA persistence contexts for flows that require them -->
|
||||||
|
<bean id="jpaFlowExecutionListener" class="org.springframework.webflow.persistence.JpaFlowExecutionListener">
|
||||||
|
<constructor-arg ref="entityManagerFactory" />
|
||||||
|
<constructor-arg ref="transactionManager" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
<?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:webflow="http://www.springframework.org/schema/webflow-config"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans
|
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
||||||
http://www.springframework.org/schema/webflow-config
|
|
||||||
http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd">
|
|
||||||
|
|
||||||
<!-- Executes flows: the central entry point into the Spring Web Flow system -->
|
|
||||||
<webflow:flow-executor id="flowExecutor">
|
|
||||||
<webflow:flow-execution-attributes>
|
|
||||||
<webflow:always-redirect-on-pause value="false"/>
|
|
||||||
</webflow:flow-execution-attributes>
|
|
||||||
<webflow:flow-execution-listeners>
|
|
||||||
<webflow:listener ref="jpaFlowExecutionListener" />
|
|
||||||
</webflow:flow-execution-listeners>
|
|
||||||
</webflow:flow-executor>
|
|
||||||
|
|
||||||
<!-- The registry of executable flow definitions -->
|
|
||||||
<webflow:flow-registry id="flowRegistry">
|
|
||||||
<webflow:flow-location path="/WEB-INF/flows/view/view.xml" />
|
|
||||||
<webflow:flow-location path="/WEB-INF/flows/main/main.xml" />
|
|
||||||
<webflow:flow-location path="/WEB-INF/flows/booking/booking.xml" />
|
|
||||||
</webflow:flow-registry>
|
|
||||||
|
|
||||||
<!-- Installs a listener that manages JPA persistence contexts for flows that require them -->
|
|
||||||
<bean id="jpaFlowExecutionListener" class="org.springframework.webflow.persistence.JpaFlowExecutionListener">
|
|
||||||
<constructor-arg ref="entityManagerFactory" />
|
|
||||||
<constructor-arg ref="transactionManager" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</beans>
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
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">
|
|
||||||
|
|
||||||
<!-- Maps portlet modes to handlers -->
|
|
||||||
<bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping">
|
|
||||||
<property name="portletModeMap">
|
|
||||||
<map>
|
|
||||||
<entry key="view">
|
|
||||||
<bean class="org.springframework.webflow.samples.booking.ViewFlowHandler" />
|
|
||||||
</entry>
|
|
||||||
</map>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<!-- Maps logical view names selected by the url filename controller to .jsp view templates within the /WEB-INF directory -->
|
|
||||||
<bean id="internalJspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
||||||
<property name="prefix" value="/WEB-INF/" />
|
|
||||||
<property name="suffix" value=".jsp" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<!-- Enables FlowHandlers -->
|
|
||||||
<bean class="org.springframework.webflow.mvc.portlet.FlowHandlerAdapter">
|
|
||||||
<property name="flowExecutor" ref="flowExecutor"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</beans>
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<context-param>
|
<context-param>
|
||||||
<param-name>contextConfigLocation</param-name>
|
<param-name>contextConfigLocation</param-name>
|
||||||
<param-value>
|
<param-value>
|
||||||
/WEB-INF/config/data-access-config.xml
|
/WEB-INF/config/application-config.xml
|
||||||
</param-value>
|
</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user