Просмотр исходного кода

Moved context files to subdirectory to improve organization, removed a few redundant files.

peter_backlund 17 лет назад
Родитель
Сommit
4cd2075a65
16 измененных файлов: 10 добавлений и 82 удалений
  1. 0
    72
      dddsample/tracking/core/src/main/resources/HandlingReportService.wsdl
  2. 4
    4
      dddsample/tracking/core/src/main/resources/applicationContext.xml
  3. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-application.xml
  4. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-domain.xml
  5. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-messaging.xml
  6. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-persistence.xml
  7. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-routing.xml
  8. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-infrastructure.xml
  9. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-interfaces-booking.xml
  10. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-interfaces-dataloader.xml
  11. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-interfaces-webservice.xml
  12. 0
    0
      dddsample/tracking/core/src/main/resources/contexts/context-interfaces.xml
  13. 3
    1
      dddsample/tracking/core/src/main/resources/hibernate.cfg.xml
  14. 0
    2
      dddsample/tracking/core/src/main/resources/hibernate.properties
  15. 1
    1
      dddsample/tracking/core/src/main/webapp/WEB-INF/web.xml
  16. 2
    2
      dddsample/tracking/core/src/test/java/se/citerus/dddsample/tracking/core/infrastructure/persistence/hibernate/AbstractRepositoryTest.java

+ 0
- 72
dddsample/tracking/core/src/main/resources/HandlingReportService.wsdl Просмотреть файл

@@ -1,72 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<wsdl:definitions name="HandlingReportServiceService" targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
3
-  <wsdl:types>
4
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/">
5
-    <xs:element name="submitReport" type="tns:submitReport"/>
6
-    <xs:element name="submitReportResponse" type="tns:submitReportResponse"/>
7
-    <xs:complexType name="submitReport">
8
-        <xs:sequence>
9
-            <xs:element minOccurs="0" name="arg0" type="tns:handlingReport"/>
10
-        </xs:sequence>
11
-    </xs:complexType>
12
-    <xs:complexType name="handlingReport">
13
-        <xs:sequence>
14
-            <xs:element name="completionTime" type="xs:dateTime"/>
15
-            <xs:element maxOccurs="unbounded" name="trackingIds" type="xs:string"/>
16
-            <xs:element name="type" type="xs:string"/>
17
-            <xs:element name="unLocode" type="xs:string"/>
18
-            <xs:element minOccurs="0" name="voyageNumber" type="xs:string"/>
19
-        </xs:sequence>
20
-    </xs:complexType>
21
-    <xs:complexType name="submitReportResponse">
22
-        <xs:sequence/>
23
-    </xs:complexType>
24
-    <xs:element name="HandlingReportErrors" type="tns:HandlingReportErrors"/>
25
-    <xs:complexType name="HandlingReportErrors">
26
-        <xs:sequence/>
27
-    </xs:complexType>
28
-</xs:schema>
29
-  </wsdl:types>
30
-  <wsdl:message name="HandlingReportErrors">
31
-    <wsdl:part name="HandlingReportErrors" element="tns:HandlingReportErrors">
32
-    </wsdl:part>
33
-  </wsdl:message>
34
-  <wsdl:message name="submitReport">
35
-    <wsdl:part name="parameters" element="tns:submitReport">
36
-    </wsdl:part>
37
-  </wsdl:message>
38
-  <wsdl:message name="submitReportResponse">
39
-    <wsdl:part name="parameters" element="tns:submitReportResponse">
40
-    </wsdl:part>
41
-  </wsdl:message>
42
-  <wsdl:portType name="HandlingReportService">
43
-    <wsdl:operation name="submitReport">
44
-      <wsdl:input name="submitReport" message="tns:submitReport">
45
-    </wsdl:input>
46
-      <wsdl:output name="submitReportResponse" message="tns:submitReportResponse">
47
-    </wsdl:output>
48
-      <wsdl:fault name="HandlingReportErrors" message="tns:HandlingReportErrors">
49
-    </wsdl:fault>
50
-    </wsdl:operation>
51
-  </wsdl:portType>
52
-  <wsdl:binding name="HandlingReportServiceServiceSoapBinding" type="tns:HandlingReportService">
53
-    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
54
-    <wsdl:operation name="submitReport">
55
-      <soap:operation soapAction="" style="document"/>
56
-      <wsdl:input name="submitReport">
57
-        <soap:body use="literal"/>
58
-      </wsdl:input>
59
-      <wsdl:output name="submitReportResponse">
60
-        <soap:body use="literal"/>
61
-      </wsdl:output>
62
-      <wsdl:fault name="HandlingReportErrors">
63
-        <soap:fault name="HandlingReportErrors" use="literal"/>
64
-      </wsdl:fault>
65
-    </wsdl:operation>
66
-  </wsdl:binding>
67
-  <wsdl:service name="HandlingReportServiceService">
68
-    <wsdl:port name="HandlingReportServicePort" binding="tns:HandlingReportServiceServiceSoapBinding">
69
-      <soap:address location="http://localhost:9090/HandlingReportServicePort"/>
70
-    </wsdl:port>
71
-  </wsdl:service>
72
-</wsdl:definitions>

dddsample/tracking/core/src/main/resources/context.xml → dddsample/tracking/core/src/main/resources/applicationContext.xml Просмотреть файл

@@ -6,10 +6,10 @@
6 6
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 7
                            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
8 8
 
9
-  <import resource="context-infrastructure.xml"/>
10
-  <import resource="context-domain.xml"/>
11
-  <import resource="context-application.xml"/>
12
-  <import resource="context-interfaces.xml"/>
9
+  <import resource="contexts/context-infrastructure.xml"/>
10
+  <import resource="contexts/context-domain.xml"/>
11
+  <import resource="contexts/context-application.xml"/>
12
+  <import resource="contexts/context-interfaces.xml"/>
13 13
 
14 14
   <context:annotation-config/>
15 15
 

dddsample/tracking/core/src/main/resources/context-application.xml → dddsample/tracking/core/src/main/resources/contexts/context-application.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-domain.xml → dddsample/tracking/core/src/main/resources/contexts/context-domain.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-infrastructure-messaging.xml → dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-messaging.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-infrastructure-persistence.xml → dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-persistence.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-infrastructure-routing.xml → dddsample/tracking/core/src/main/resources/contexts/context-infrastructure-routing.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-infrastructure.xml → dddsample/tracking/core/src/main/resources/contexts/context-infrastructure.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-interfaces-booking.xml → dddsample/tracking/core/src/main/resources/contexts/context-interfaces-booking.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-interfaces-dataloader.xml → dddsample/tracking/core/src/main/resources/contexts/context-interfaces-dataloader.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-interfaces-webservice.xml → dddsample/tracking/core/src/main/resources/contexts/context-interfaces-webservice.xml Просмотреть файл


dddsample/tracking/core/src/main/resources/context-interfaces.xml → dddsample/tracking/core/src/main/resources/contexts/context-interfaces.xml Просмотреть файл


+ 3
- 1
dddsample/tracking/core/src/main/resources/hibernate.cfg.xml Просмотреть файл

@@ -9,7 +9,9 @@
9 9
   <session-factory>
10 10
     <!-- Properties defined here are shared between test and production -->
11 11
     <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
12
-    
12
+    <property name="format_sql">true</property>
13
+    <property name="hbm2ddl.auto">create-drop</property>
14
+
13 15
     <mapping resource="se/citerus/dddsample/tracking/core/infrastructure/persistence/hibernate/Cargo.hbm.xml" />
14 16
     <mapping resource="se/citerus/dddsample/tracking/core/infrastructure/persistence/hibernate/Voyage.hbm.xml" />
15 17
     <mapping resource="se/citerus/dddsample/tracking/core/infrastructure/persistence/hibernate/Leg.hbm.xml" />

+ 0
- 2
dddsample/tracking/core/src/main/resources/hibernate.properties Просмотреть файл

@@ -1,2 +0,0 @@
1
-hibernate.hbm2ddl.auto=create-drop
2
-hibernate.format_sql=true

+ 1
- 1
dddsample/tracking/core/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -21,7 +21,7 @@
21 21
 
22 22
   <context-param>
23 23
     <param-name>contextConfigLocation</param-name>
24
-    <param-value>classpath:context.xml</param-value>
24
+    <param-value>classpath:applicationContext.xml</param-value>
25 25
   </context-param>
26 26
 
27 27
   <listener>

+ 2
- 2
dddsample/tracking/core/src/test/java/se/citerus/dddsample/tracking/core/infrastructure/persistence/hibernate/AbstractRepositoryTest.java Просмотреть файл

@@ -47,8 +47,8 @@ public abstract class AbstractRepositoryTest extends AbstractTransactionalDataSo
47 47
   @Override
48 48
   protected String[] getConfigLocations() {
49 49
     return new String[] {
50
-      "context-infrastructure-persistence.xml",
51
-      "context-domain.xml"
50
+      "contexts/context-infrastructure-persistence.xml",
51
+      "contexts/context-domain.xml"
52 52
     };
53 53
   }
54 54