Ignore:
Timestamp:
03/07/13 09:54:21 (11 years ago)
Author:
keeloo
Message:

Made VloConfig? truly static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-2.13-param/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java

    r2659 r2660  
    129129     * @return the configuration
    130130     */
    131     public static VloConfig readPackagedConfig() {
     131    public static void readPackagedConfig() {
    132132       
    133133        // set the name of the packaged configuration file
    134134        String fileName = "/VloConfig";
    135135       
    136         config = VloConfig.readConfig (fileName);
     136        VloConfig.readConfig (fileName);
    137137       
    138         return config;
     138        // return config;
    139139    }
    140140   
     
    149149     * @return the configuration
    150150     */
    151     public static VloConfig readConfig(String fileName) {
     151    public static void readConfig(String fileName) {
    152152       
    153153        // may it is safe to first expand the name a litte bit more
     
    159159
    160160        // get the XML file configuration from the file by invoking ...
    161         config = (VloConfig) read(fileName, config);
    162 
    163         return config;
     161        read(fileName, config);
    164162    }
    165163
    166164    /**
    167165     * Read the configuration from an XML file.
     166     *
     167     * Move the following remarks to a general remark in the class description,
     168     * a remark indicating what you could do if you do not want to use the
     169     * packaged configuration.
    168170     *
    169171     * Invoke this method instead of readConfig() if you want to change
     
    177179     * container.
    178180     *     
    179      * @param fileName the name of the file to read the configuration from
    180      *
    181      * @return the configuration
    182      */
    183     public static VloConfig readTestConfig(String fileName) {
    184 
    185         config = VloConfig.readConfig (fileName);
    186        
    187         // modify the configuration here
    188 
    189         return config;
    190     }
     181     */
    191182
    192183    /**
Note: See TracChangeset for help on using the changeset viewer.