1
2
3
4
5
6
7 package org.asyrinx.joey.gen.model.rdb.xml;
8
9 import java.io.IOException;
10 import java.util.List;
11
12 import org.apache.tools.ant.Project;
13 import org.asyrinx.joey.gen.model.rdb.Databases;
14 import org.xml.sax.SAXException;
15
16 /***
17 * @author takeshi
18 */
19 public class CacheDataBasesLoader implements DatabasesLoader {
20
21 /***
22 *
23 */
24 public CacheDataBasesLoader(DatabasesLoader impl) {
25 super();
26 this.impl = impl;
27 }
28
29 final DatabasesLoader impl;
30
31 private Databases result = null;
32
33
34
35
36
37
38
39 public Databases load(String xmlFile, List filesets, Project project) throws IOException, SAXException {
40 if (result != null)
41 return result;
42 result = impl.load(xmlFile, filesets, project);
43 return result;
44 }
45
46 }