Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollectionFactory.java @ 159:db0d20440b92
Added code to create collections.
artifacts/trunk@1384 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 03 Mar 2011 12:13:24 +0000 |
parents | c9cf5f33a230 |
children | ac0f8bd97277 |
comparison
equal
deleted
inserted
replaced
158:d718a4d55662 | 159:db0d20440b92 |
---|---|
118 * @param data the data containing more details for the setup of an Artifact. | 118 * @param data the data containing more details for the setup of an Artifact. |
119 * @return a new {@linkplain de.intevation.artifacts.ArtifactCollection ArtifactCollection} | 119 * @return a new {@linkplain de.intevation.artifacts.ArtifactCollection ArtifactCollection} |
120 */ | 120 */ |
121 public ArtifactCollection createCollection( | 121 public ArtifactCollection createCollection( |
122 String identifier, | 122 String identifier, |
123 Object context, | 123 String name, |
124 Document data) | 124 Document data, |
125 { | 125 Object context |
126 ) { | |
126 try { | 127 try { |
127 ArtifactCollection collection = | 128 ArtifactCollection collection = |
128 (ArtifactCollection) clazz.newInstance(); | 129 (ArtifactCollection) clazz.newInstance(); |
129 | 130 |
130 collection.setup(identifier, this, context, data); | 131 collection.setup(identifier, this, context, data); |