Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java @ 10:e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
* Implement defaults for Artifact and ArtifactFactory.
* Added connection pooling from apache commons dbcp
* Made sql schema of artifact database more compatible.
* Improve example config.
* Made artifactdb start with 'mvn exec:exec'
* minor fixes.
artifacts/trunk@25 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 06 Sep 2009 12:00:56 +0000 |
parents | f95d9a449215 |
children | 635310c6a20e |
comparison
equal
deleted
inserted
replaced
9:a5a279a0ee35 | 10:e8626caac353 |
---|---|
64 protected void loadArtifactFactories() { | 64 protected void loadArtifactFactories() { |
65 ArrayList loadedFactories = new ArrayList(); | 65 ArrayList loadedFactories = new ArrayList(); |
66 | 66 |
67 NodeList nodes = Config.getNodeSetXPath(ARTIFACT_FACTORIES); | 67 NodeList nodes = Config.getNodeSetXPath(ARTIFACT_FACTORIES); |
68 | 68 |
69 if (nodes == null) { | |
70 System.err.println("ERROR: no factories found"); | |
71 return; | |
72 } | |
73 | |
69 Document config = Config.getConfig(); | 74 Document config = Config.getConfig(); |
70 | 75 |
71 for (int i = 0, N = nodes.getLength(); i < N; ++i) { | 76 for (int i = 0, N = nodes.getLength(); i < N; ++i) { |
72 String className = nodes.item(i).getTextContent(); | 77 String className = nodes.item(i).getTextContent(); |
73 | 78 |