コード例 #1
0
 /**
  * Reads given configuration property. If not found, returns the default value.
  *
  * @param name Name of configuration property
  * @param def default value
  * @see #getClass(String)
  */
 public static Class getClass(String name, Class def) {
   return config.getClass(name, def);
 }
コード例 #2
0
 /**
  * Reads given configuration property. If not found, throws a {@link MissingParameterException}.
  * When creating the Class object, a few attempts are done to resolve the classname. See {@link
  * Configuration} for details.
  *
  * @param name Name of configuration property
  */
 public static Class getClass(String name) {
   return config.getClass(name);
 }