Ignore:
Timestamp:
2021-11-03T15:24:04+13:00 (2 years ago)
Author:
cstephen
Message:

Add support for JSON response to direct input queries. Cleanup other components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/src/java/monogram/model/MonogramFactory.java

    r29855 r35719  
    1 
    21package monogram.model;
    32
     
    98 * When the pool thread is done this it clears the pool.
    109 *
    11  * @see MonogramMode
    12  *
     10 * @see MonogramModel
    1311 *
    1412 * @author University of Waikato - Te Whare Wānanga o Waikato
     
    1614 * @since   2014-11-20
    1715 */
    18 
    19 public class MonogramFactory {
    20 
     16public class MonogramFactory
     17{
    2118    private final static MonogramModel macronModel;
    2219    private final static MonogramModel doubleVowelModel;
    23    private final static ListModel blackList;
     20    private final static ListModel blackList;
    2421
    2522    static {
     
    2724        macronModel = new MonogramModel("../data/macron", pool);
    2825        doubleVowelModel = new MonogramModel("../data/doublevowel", pool);
    29         blackList = new ListModel("../data/list/blacklist.data", pool);
     26        blackList = new ListModel("../data/list/blacklist.data");
    3027        pool.clear();
    3128    }
    3229
    3330    private MonogramFactory() {
    34         //hide constructor.
     31        // Hide constructor.
    3532    }
    36 /** monogram model for macron data (/data/macron) */
     33
     34    /** monogram model for macron data (/data/macron) */
    3735    public static MonogramModel getMacronModel() {
    38      
    3936        return macronModel;
    4037    }
    41 /** monogram model for double vowel data (/data/doubleVowel) */
     38
     39    /** Monogram model for double vowel data (/data/doubleVowel) */
    4240    public static MonogramModel getDoubleVowelModel() {
    4341        return doubleVowelModel;
    4442    }
    4543   
    46     /** monogram model for black list data (/data/blacklist) */
     44    /** Monogram model for black list data (/data/blacklist) */
    4745    public static ListModel getBlackList() {
    4846        return blackList;
    49   }
     47    }
    5048}
Note: See TracChangeset for help on using the changeset viewer.