Ignore:
Timestamp:
2006-08-31T17:03:13+12:00 (18 years ago)
Author:
mdewsnip
Message:

Made some of the new plugins/classifiers code static in preparation for possibly moving it into new classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r12634 r12635  
    6060{
    6161    // A list of all the classifiers in the core Greenstone "perllib/classify" folder (arguments may not be loaded)
    62     private ArrayList core_greenstone_classifiers_list = null;
     62    static private ArrayList core_greenstone_classifiers_list = null;
    6363
    6464    /** The controls for editing the contents of this manager. */
     
    7777
    7878    core_greenstone_classifiers_list = loadClassifiersList();
     79
     80    // Force the assigned classifiers to be loaded and cached now
     81    for (int i = 0; i < getSize(); i++) {
     82        getElementAt(i);
     83    }
    7984    }
    8085
     
    103108
    104109
    105     public Classifier getClassifier(String classifier_name, boolean arguments_required)
     110    static public Classifier getClassifier(String classifier_name, boolean arguments_required)
    106111    {
    107112    for (int i = 0; i < core_greenstone_classifiers_list.size(); i++) {
     
    124129
    125130
    126     private void loadClassifierInfo(Classifier classifier)
     131    static private void loadClassifierInfo(Classifier classifier)
    127132    {
    128133    System.err.println("Loading arguments for " + classifier.getName() + "...");
     
    209214
    210215
    211     private void parseClassifierInfoXML(Classifier classifier, String xml)
     216    static private void parseClassifierInfoXML(Classifier classifier, String xml)
    212217    {
    213218    Document document = XMLTools.parseXML(new StringReader(xml));
     
    216221
    217222
    218     private void parseClassifierInfoXMLNode(Classifier classifier, Node root_node)
     223    static private void parseClassifierInfoXMLNode(Classifier classifier, Node root_node)
    219224    {
    220225    for (Node node = root_node.getFirstChild(); node != null; node = node.getNextSibling()) {
Note: See TracChangeset for help on using the changeset viewer.