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/11/09 15:56:27
    6    */
    7   package org.asyrinx.joey.gen.model.java.classes;
    8
    9   import org.apache.commons.logging.Log;
    10  import org.apache.commons.logging.LogFactory;
    11
    12  /***
    13   * @author takeshi
    14   */
    15  public class EmbeddedClassUtils {
    16
    17      private static boolean classLoaded = false;
    18
    19      private static void loadClasses() {
    20          if (classLoaded)
    21              return;
    22          classLoaded = true;
    23          final Log log = LogFactory.getLog(EmbeddedClass.class);
    24          log.info("loading embedded Classes....");
    25          log.info(JavaLangClass.STRING.getName());
    26          log.info(JavaUtilClass.DATE.getName());
    27          log.info(PrimitiveType.BOOLEAN.getName());
    28          log.info(PrimitiveWrapper.BOOLEAN.getName());
    29      }
    30
    31      public static EmbeddedClass get(String name) {
    32          loadClasses();
    33          return EmbeddedClass.get(name);
    34      }
    35
    36  }