Kaynağa Gözat

Merge 0514a3c8a29c643ed7f5f357a72b87883bd1348a into 700be64d6f52f449cd218a7217e93490be962246

TMTron 8 yıl önce
ebeveyn
işleme
f2031111ea
No account linked to committer's email

+ 2
- 1
README.md Dosyayı Görüntüle

3
 
3
 
4
 Our intention is to move everything from SourceForge to GitHub in due time while starting upgrading both the technical aspects as well as the DDD aspects of the DDD Sample.
4
 Our intention is to move everything from SourceForge to GitHub in due time while starting upgrading both the technical aspects as well as the DDD aspects of the DDD Sample.
5
 
5
 
6
-The application uses Spring Boot. To start it go to the root directory and type `mvn spring-boot:run` or run the `main` method of the `Application` class from your IDE.
6
+The application uses Spring Boot. To start it go to the root directory and type `mvn spring-boot:run` or run the `main` method of the `Application` class from your IDE.  
7
+Then open http://localhost:8080/dddsample in your browser (and make sure, that no firewall is blocking the communication).
7
 
8
 
8
 Discussion group: https://groups.google.com/forum/#!forum/dddsample
9
 Discussion group: https://groups.google.com/forum/#!forum/dddsample
9
 
10
 

+ 1
- 1
src/main/java/se/citerus/dddsample/application/impl/HandlingEventServiceImpl.java Dosyayı Görüntüle

39
                                     final HandlingEvent.Type type) throws CannotCreateHandlingEventException {
39
                                     final HandlingEvent.Type type) throws CannotCreateHandlingEventException {
40
     final Date registrationTime = new Date();
40
     final Date registrationTime = new Date();
41
     /* Using a factory to create a HandlingEvent (aggregate). This is where
41
     /* Using a factory to create a HandlingEvent (aggregate). This is where
42
-       it is determined wether the incoming data, the attempt, actually is capable
42
+       it is determined whether the incoming data, the attempt, actually is capable
43
        of representing a real handling event. */
43
        of representing a real handling event. */
44
     final HandlingEvent event = handlingEventFactory.createHandlingEvent(
44
     final HandlingEvent event = handlingEventFactory.createHandlingEvent(
45
       registrationTime, completionTime, trackingId, voyageNumber, unLocode, type
45
       registrationTime, completionTime, trackingId, voyageNumber, unLocode, type

+ 2
- 2
src/main/java/se/citerus/dddsample/domain/model/cargo/Cargo.java Dosyayı Görüntüle

31
  * of the cargo is contained in the Delivery value object, which is replaced whenever a cargo
31
  * of the cargo is contained in the Delivery value object, which is replaced whenever a cargo
32
  * is handled by an asynchronous event triggered by the registration of the handling event.
32
  * is handled by an asynchronous event triggered by the registration of the handling event.
33
  *
33
  *
34
- * The delivery can also be affected by routing changes, i.e. when a the route specification
34
+ * The delivery can also be affected by routing changes, i.e. when the route specification
35
  * changes, or the cargo is assigned to a new route. In that case, the delivery update is performed
35
  * changes, or the cargo is assigned to a new route. In that case, the delivery update is performed
36
  * synchronously within the cargo aggregate.
36
  * synchronously within the cargo aggregate.
37
  *
37
  *
38
  * The life cycle of a cargo ends when the cargo is claimed by the customer.
38
  * The life cycle of a cargo ends when the cargo is claimed by the customer.
39
  *
39
  *
40
- * The cargo aggregate, and the entre domain model, is built to solve the problem
40
+ * The cargo aggregate, and the entire domain model, is built to solve the problem
41
  * of booking and tracking cargo. All important business rules for determining whether
41
  * of booking and tracking cargo. All important business rules for determining whether
42
  * or not a cargo is misdirected, what the current status of the cargo is (on board carrier,
42
  * or not a cargo is misdirected, what the current status of the cargo is (on board carrier,
43
  * in port etc), are captured in this aggregate.
43
  * in port etc), are captured in this aggregate.

+ 1
- 1
src/main/java/se/citerus/dddsample/domain/model/cargo/RouteSpecification.java Dosyayı Görüntüle

10
 import java.util.Date;
10
 import java.util.Date;
11
 
11
 
12
 /**
12
 /**
13
- * Route specification. Describes where a cargo orign and destination is,
13
+ * Route specification. Describes where a cargo origin and destination is,
14
  * and the arrival deadline.
14
  * and the arrival deadline.
15
  * 
15
  * 
16
  */
16
  */

+ 2
- 2
src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEvent.java Dosyayı Görüntüle

14
 
14
 
15
 /**
15
 /**
16
  * A HandlingEvent is used to register the event when, for instance,
16
  * A HandlingEvent is used to register the event when, for instance,
17
- * a cargo is unloaded from a carrier at a some loacation at a given time.
17
+ * a cargo is unloaded from a carrier at some location at a given time.
18
  * <p/>
18
  * <p/>
19
  * The HandlingEvent's are sent from different Incident Logging Applications
19
  * The HandlingEvent's are sent from different Incident Logging Applications
20
- * some time after the event occured and contain information about the
20
+ * some time after the event occurred and contain information about the
21
  * {@link se.citerus.dddsample.domain.model.cargo.TrackingId}, {@link se.citerus.dddsample.domain.model.location.Location}, timestamp of the completion of the event,
21
  * {@link se.citerus.dddsample.domain.model.cargo.TrackingId}, {@link se.citerus.dddsample.domain.model.location.Location}, timestamp of the completion of the event,
22
  * and possibly, if applicable a {@link se.citerus.dddsample.domain.model.voyage.Voyage}.
22
  * and possibly, if applicable a {@link se.citerus.dddsample.domain.model.voyage.Voyage}.
23
  * <p/>
23
  * <p/>

+ 1
- 1
src/main/java/se/citerus/dddsample/domain/shared/experimental/ValueObjectSupport.java Dosyayı Görüntüle

9
  *
9
  *
10
  * @param <T>
10
  * @param <T>
11
  */
11
  */
12
-public abstract class ValueObjectSupport<T extends ValueObject> implements ValueObject<T> {
12
+public abstract class ValueObjectSupport<T extends ValueObject<T>> implements ValueObject<T> {
13
 
13
 
14
   private transient int cachedHashCode = 0;
14
   private transient int cachedHashCode = 0;
15
 
15
 

+ 1
- 1
src/main/java/se/citerus/dddsample/infrastructure/routing/ExternalRoutingService.java Dosyayı Görüntüle

43
     limitations.setProperty("DEADLINE", routeSpecification.arrivalDeadline().toString());
43
     limitations.setProperty("DEADLINE", routeSpecification.arrivalDeadline().toString());
44
 
44
 
45
     final List<TransitPath> transitPaths;
45
     final List<TransitPath> transitPaths;
46
-      transitPaths = graphTraversalService.findShortestPath(
46
+    transitPaths = graphTraversalService.findShortestPath(
47
       origin.unLocode().idString(),
47
       origin.unLocode().idString(),
48
       destination.unLocode().idString(),
48
       destination.unLocode().idString(),
49
       limitations
49
       limitations

+ 1
- 1
src/main/java/se/citerus/dddsample/interfaces/handling/ws/HandlingReportServiceImpl.java Dosyayı Görüntüle

23
 /**
23
 /**
24
  * This web service endpoint implementation performs basic validation and parsing
24
  * This web service endpoint implementation performs basic validation and parsing
25
  * of incoming data, and in case of a valid registration attempt, sends an asynchronous message
25
  * of incoming data, and in case of a valid registration attempt, sends an asynchronous message
26
- * with the informtion to the handling event registration system for proper registration.
26
+ * with the information to the handling event registration system for proper registration.
27
  *  
27
  *  
28
  */
28
  */
29
 @WebService(endpointInterface = "com.aggregator.HandlingReportService")
29
 @WebService(endpointInterface = "com.aggregator.HandlingReportService")