Ver código fonte

Removed old redundant pattern interfaces

peter_backlund 17 anos atrás
pai
commit
48e28b2a00

+ 1
- 1
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/model/handling/HandlingEvent.java Ver arquivo

@@ -7,8 +7,8 @@ import se.citerus.dddsample.tracking.core.domain.model.cargo.Cargo;
7 7
 import se.citerus.dddsample.tracking.core.domain.model.location.Location;
8 8
 import se.citerus.dddsample.tracking.core.domain.model.shared.HandlingActivity;
9 9
 import se.citerus.dddsample.tracking.core.domain.model.voyage.Voyage;
10
-import se.citerus.dddsample.tracking.core.domain.shared.DomainEvent;
11 10
 import se.citerus.dddsample.tracking.core.domain.shared.DomainObjectUtils;
11
+import se.citerus.dddsample.tracking.core.domain.shared.experimental.DomainEvent;
12 12
 import se.citerus.dddsample.tracking.core.domain.shared.experimental.ValueObject;
13 13
 
14 14
 import java.util.Date;

+ 0
- 17
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/shared/DomainEvent.java Ver arquivo

@@ -1,17 +0,0 @@
1
-package se.citerus.dddsample.tracking.core.domain.shared;
2
-
3
-/**
4
- * A domain event is something that is unique, but does not have a lifecycle.
5
- * The identity may be explicit, for example the sequence number of a payment,
6
- * or it could be derived from various aspects of the event such as where, when and what
7
- * has happened.
8
- */
9
-public interface DomainEvent<T> {
10
-
11
-  /**
12
-   * @param other The other domain event.
13
-   * @return <code>true</code> if the given domain event and this event are regarded as being the same event.
14
-   */
15
-  boolean sameEventAs(T other);
16
-
17
-}

+ 0
- 16
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/shared/Entity.java Ver arquivo

@@ -1,16 +0,0 @@
1
-package se.citerus.dddsample.tracking.core.domain.shared;
2
-
3
-/**
4
- * An entity, as explained in the DDD book.
5
- */
6
-public interface Entity<T> {
7
-
8
-  /**
9
-   * Entities compare by identity, not by attributes.
10
-   *
11
-   * @param other The other entity.
12
-   * @return true if the identities are the same, regardles of other attributes.
13
-   */
14
-  boolean sameAs(T other);
15
-
16
-}

+ 0
- 18
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/shared/ValueObject.java Ver arquivo

@@ -1,18 +0,0 @@
1
-package se.citerus.dddsample.tracking.core.domain.shared;
2
-
3
-import java.io.Serializable;
4
-
5
-/**
6
- * A value object, as described in the DDD book.
7
- */
8
-public interface ValueObject<T> extends Serializable {
9
-
10
-  /**
11
-   * Value objects compare by the values of their attributes, they don't have an identity.
12
-   *
13
-   * @param other The other value object.
14
-   * @return <code>true</code> if the given value object's and this value object's attributes are the same.
15
-   */
16
-  boolean sameValueAs(T other);
17
-
18
-}

+ 2
- 0
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/shared/experimental/DomainEvent.java Ver arquivo

@@ -5,6 +5,8 @@ package se.citerus.dddsample.tracking.core.domain.shared.experimental;
5 5
  * The identity may be explicit, for example the sequence number of a payment,
6 6
  * or it could be derived from various aspects of the event such as where, when and what
7 7
  * has happened.
8
+ *
9
+ * TODO create support class
8 10
  */
9 11
 public interface DomainEvent<T> {
10 12