View Javadoc

    1   /*
    2    * joey-gen and its relative products are published under the terms
    3    * of the Apache Software License.
    4    *
    5    * Created on 2004/12/12 15:49:18
    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       * (non-Javadoc)
    35       *
    36       * @see org.asyrinx.joey.gen.model.rdb.xml.DatabasesLoader#load(java.lang.String,
    37       *      java.util.List, org.apache.tools.ant.Project)
    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  }