JGAP

org.jgap.data.config
Class MetaConfig

java.lang.Object
  extended by org.jgap.data.config.MetaConfig

public class MetaConfig
extends java.lang.Object

This class provides an interface to the configuration information to create a JGAP Configuration GUI.

Since:
2.4

Method Summary
 java.util.List getConfigProperty(java.lang.String className)
          Read the meta-config file and load it in memory.
static MetaConfig getInstance()
           
 java.io.Reader getReader(java.lang.String a_filename)
          Returns a reader to a file
protected  void init()
          Read the meta-config file and load it in memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MetaConfig getInstance()
                              throws MetaConfigException,
                                     java.io.IOException
Throws:
MetaConfigException
java.io.IOException

getConfigProperty

public java.util.List getConfigProperty(java.lang.String className)
Read the meta-config file and load it in memory.

Parameters:
className - the name of the class of which the properties are required
Returns:
the list of properties for this class, if class is registered, otherwise null
Since:
2.4

init

protected void init()
             throws MetaConfigException,
                    java.io.IOException
Read the meta-config file and load it in memory. Having to read my own property file without using the Java Property class since I need to preserve the order of these properties, plus I have duplicate labels.

Throws:
MetaConfigException
java.io.IOException
Since:
2.4

getReader

public java.io.Reader getReader(java.lang.String a_filename)
                         throws java.io.IOException
Returns a reader to a file

Parameters:
a_filename - the file to retrieve a reader for
Returns:
the Reader
Throws:
java.io.IOException
Since:
3.0

JGAP