changeset 365:81ae7948bff0

Added the owner Artifact as parameter to State.initialize(). artifacts/trunk@3628 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Jan 2012 10:46:02 +0000
parents 0723859f776f
children 1f51f3c46efe
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java
diffstat 3 files changed, 23 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 09 10:44:43 2012 +0000
+++ b/ChangeLog	Mon Jan 09 10:46:02 2012 +0000
@@ -1,3 +1,9 @@
+2012-01-09  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java,
+	  artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java:
+	  Added the owner Artifact as further parameter to initialize().
+
 2012-01-09  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifacts-common/src/main/java/de/intevation/artifacts/common/utils/FileTools.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Mon Jan 09 10:44:43 2012 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Mon Jan 09 10:46:02 2012 +0000
@@ -200,8 +200,18 @@
 
     /**
      * This default implementation does nothing at all.
+     *
+     * @param orig
+     * @param owner
+     * @param context
+     * @param callMeta
      */
-    public void initialize(Artifact orig, Object context, CallMeta callMeta) {
+    public void initialize(
+        Artifact orig,
+        Artifact owner,
+        Object   context,
+        CallMeta callMeta
+    ) {
         // do nothing.
     }
 
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Mon Jan 09 10:44:43 2012 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Mon Jan 09 10:46:02 2012 +0000
@@ -95,10 +95,15 @@
      * Initializes the internal state of this State based on an other State.
      *
      * @param orig The owner Artifact or the original State.
+     * @param owner The owner Artifact of this State.
      * @param context The context object.
      * @param callMeta The CallMeta of the current call.
      */
-    public void initialize(Artifact orig, Object context, CallMeta callMeta);
+    public void initialize(
+        Artifact orig,
+        Artifact owner,
+        Object   context,
+        CallMeta callMeta);
 
 
     /**

http://dive4elements.wald.intevation.org