Mercurial > dive4elements > framework
diff artifacts/src/main/java/de/intevation/artifacts/Artifact.java @ 24:d5dc2900392f
* Added callback parameter to Artifact.setup()
* New namespace context for artifacts.
artifacts/trunk@58 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 10 Sep 2009 08:57:09 +0000 |
parents | e8626caac353 |
children | c4d85a8532d1 |
line wrap: on
line diff
--- a/artifacts/src/main/java/de/intevation/artifacts/Artifact.java Thu Sep 10 08:14:03 2009 +0000 +++ b/artifacts/src/main/java/de/intevation/artifacts/Artifact.java Thu Sep 10 08:57:09 2009 +0000 @@ -24,7 +24,7 @@ * * There are two more methods involved with the life cycle of the are: * <ol> - * <li>{@link #setup(String, Object) setup()}: Called after created by the + * <li>{@link #setup(String, ArtifactFactory, Object) setup()}: Called after created by the * factory.</li> * <li>{@link #endOfLife(Object) endOfLife()}: Called when the artifact * is going to be removed from @@ -84,9 +84,10 @@ * When created by a factory this method is called to * initialize the artifact. * @param identifier The identifier from artifact database + * @param factory The factory which created this artifact. * @param context The global context of the runtime system. */ - public void setup(String identifier, Object context); + public void setup(String identifier, ArtifactFactory factory, Object context); /** * Called from artifact database when an artifact is