Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/App.java @ 32:c2d53bd30ab8
Re-factored artifact API for better integration of background processing.
artifacts/trunk@78 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 13 Sep 2009 14:50:53 +0000 |
parents | 88972c6daa4f |
children | 5e4bc24ea438 |
comparison
equal
deleted
inserted
replaced
31:c4d85a8532d1 | 32:c2d53bd30ab8 |
---|---|
38 | 38 |
39 FactoryBootstrap bootstrap = new FactoryBootstrap(); | 39 FactoryBootstrap bootstrap = new FactoryBootstrap(); |
40 | 40 |
41 bootstrap.boot(); | 41 bootstrap.boot(); |
42 | 42 |
43 Backend backend = new Backend(); | |
44 | |
45 ArtifactDatabaseImpl db = new ArtifactDatabaseImpl( | |
46 bootstrap, backend); | |
47 | |
43 DatabaseCleaner cleaner = new DatabaseCleaner( | 48 DatabaseCleaner cleaner = new DatabaseCleaner( |
44 bootstrap.getContext()); | 49 bootstrap.getContext()); |
45 | 50 |
51 backend.setCleaner(cleaner); | |
52 | |
53 cleaner.setFilter(db); | |
54 | |
46 cleaner.start(); | 55 cleaner.start(); |
47 | |
48 Backend backend = new Backend(cleaner); | |
49 | |
50 ArtifactDatabaseImpl db = new ArtifactDatabaseImpl( | |
51 bootstrap, backend); | |
52 | 56 |
53 Standalone.startAsServer(db); | 57 Standalone.startAsServer(db); |
54 } | 58 } |
55 } | 59 } |
56 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: | 60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |