Ignore:
Timestamp:
02/14/13 15:46:12 (11 years ago)
Author:
keeloo
Message:

some work on the vlo tests

File:
1 edited

Legend:

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

    r2577 r2590  
    6666 */
    6767@Root
    68 public class WebAppConfig extends ConfigFileParam {
     68public class WebAppConfig extends ConfigFromFile {
    6969
    7070    // create a reference to the application logging
     
    9494        ConfigFilePersister.setLogger(WebAppConfig.logger);
    9595    }
    96 
     96   
    9797    /**
    9898     * XML File in which the application configuration is stored
     
    161161        /* Contrary to Simple, the servlet context parameters are not retrieved
    162162         * by annotation. Get them by invoking a local method.
     163         *
     164         * Here also invoke a superclass method
    163165         */
    164166        config = addServletContext(config);
     
    567569       
    568570        servletContext = context;
    569     }
    570 
     571       
     572        // servletContest can be null
     573    }
     574   
    571575    /**
    572576     * Add properties of the {@literal servlet's} context<br><br>
     
    582586
    583587        // retrieve parameter valies from the servlet context
    584 
    585         config.solrUrl = servletContext.getInitParameter("solrUrl");
     588       
     589        if (servletContext == null) {
     590            // no servlet context yet
     591           
     592        } else {
     593            config.solrUrl = servletContext.getInitParameter("solrUrl");
     594        }
    586595
    587596        return config;
     
    595604     */
    596605   
    597     @Element
    598606    private String solrUrl = "";
    599607
Note: See TracChangeset for help on using the changeset viewer.