comparison artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java @ 293:a367a0d011af

Set an interface for the global context; added a method to the artifact database to return an instance of an Artifact. artifacts/trunk@2331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 14 Jul 2011 14:22:23 +0000
parents 39c0ff00d188
children b0a949d3fe09
comparison
equal deleted inserted replaced
292:39c0ff00d188 293:a367a0d011af
12 12
13 import de.intevation.artifacts.ArtifactCollectionFactory; 13 import de.intevation.artifacts.ArtifactCollectionFactory;
14 import de.intevation.artifacts.ArtifactContextFactory; 14 import de.intevation.artifacts.ArtifactContextFactory;
15 import de.intevation.artifacts.ArtifactFactory; 15 import de.intevation.artifacts.ArtifactFactory;
16 import de.intevation.artifacts.CallContext; 16 import de.intevation.artifacts.CallContext;
17 import de.intevation.artifacts.GlobalContext;
17 import de.intevation.artifacts.Hook; 18 import de.intevation.artifacts.Hook;
18 import de.intevation.artifacts.ServiceFactory; 19 import de.intevation.artifacts.ServiceFactory;
19 import de.intevation.artifacts.UserFactory; 20 import de.intevation.artifacts.UserFactory;
20 21
21 22
127 "!!!CHANGE ME! I'M NO SECRET!!!"; 128 "!!!CHANGE ME! I'M NO SECRET!!!";
128 129
129 /** 130 /**
130 * Reference to the global context build by the global context factory. 131 * Reference to the global context build by the global context factory.
131 */ 132 */
132 protected Object context; 133 protected GlobalContext context;
133 134
134 /** 135 /**
135 * List of the artifact factories to be exposed by the 136 * List of the artifact factories to be exposed by the
136 * artifact database. 137 * artifact database.
137 */ 138 */
569 570
570 /** 571 /**
571 * Returns the global context created by the global context factory. 572 * Returns the global context created by the global context factory.
572 * @return The global context. 573 * @return The global context.
573 */ 574 */
574 public Object getContext() { 575 public GlobalContext getContext() {
575 return context; 576 return context;
576 } 577 }
577 578
578 /** 579 /**
579 * Returns the signing secret to be used when ex- and importing 580 * Returns the signing secret to be used when ex- and importing

http://dive4elements.wald.intevation.org