Mercurial > dive4elements > framework
comparison Changelog @ 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 | a5a279a0ee35 |
children | af07d004d320 |
comparison
equal
deleted
inserted
replaced
9:a5a279a0ee35 | 10:e8626caac353 |
---|---|
1 2009-09-06 Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
2 | |
3 * artifacts/src/main/java/de/intevation/artifacts/Artifact.java(setup): | |
4 Added the setup() method to have symmetric counter part to endOfLife(). | |
5 | |
6 * artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java(timeToLiveUntouched): | |
7 Added this method to let the factory decide how long an artifact should live in ms. | |
8 This is not a part of the Artifact itself because this is only evaluated once when | |
9 the artifact is created. | |
10 | |
11 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java: | |
12 New. Simple base class implementation of the Artifact interface. | |
13 | |
14 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactFactory.java: | |
15 New. Simple base class implementation of the ArtifactFactory interface. When setup() | |
16 on instances of this class is called, it pull ttl, name, description and | |
17 the artifact class name from the node given. See artifactdb-example-conf.xml | |
18 for examples. | |
19 | |
20 * artifact-database/pom.xml: Cleaned up XML. | |
21 Introduced dependency to apache commons dbcp, used for pooling of the | |
22 database connections to artifact db. | |
23 Added parameters for the exec:exec goal to make the project | |
24 startable without building packages. | |
25 | |
26 * artifact-database/doc/schema.sql: Removed AUTO_INCREMENT from primary key | |
27 to avoid compatibility issues with other non-H2 databases (PostgreSQL, Oracle, ...) | |
28 which have no or limited support for generated keys in the JDBC driver. Now | |
29 using an explicit sequence. TTL ist now big int to bring the resolution to ms. | |
30 | |
31 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: | |
32 Refactored a bit to make the XPath access function usable on arbitrary XML | |
33 documents and parts of. | |
34 | |
35 * artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java: | |
36 New. Exposes DataSource from a apache dbcp connection pool configured by the | |
37 global configuration file. See artifactdb-example-conf.xml for examples. | |
38 TODO: Write some documentation about this. | |
39 | |
40 * artifact-database/doc/artifactdb-example-conf.xml: Adjusted to be a more realistic | |
41 example config file. Added references to DefaultArtifact/DefaultArtifactFactory and | |
42 demonstrate how to configure the connection pool. | |
43 | |
44 * TODO: Add remark to document the connection file. | |
45 | |
46 * artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: | |
47 Do not crash when config does not contain any factories. | |
48 | |
1 2009-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> | 49 2009-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
2 | 50 |
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java (getNodeXPath): | 51 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java (getNodeXPath): |
4 New method to get a single node from configuration. | 52 New method to get a single node from configuration. |
5 | 53 |