Ignore:
Timestamp:
02/14/14 09:37:04 (10 years ago)
Author:
twagoo
Message:

Comments and some refactoring to reduce code duplication on VLO config factories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/config/VloSpringConfig.java

    r4511 r4517  
    2424import eu.clarin.cmdi.vlo.service.impl.SolrFacetFieldsService;
    2525import eu.clarin.cmdi.vlo.service.impl.SolrQueryFactoryImpl;
     26import java.io.IOException;
    2627import org.apache.solr.client.solrj.SolrServer;
    2728import org.apache.solr.client.solrj.impl.HttpSolrServer;
     
    5354    @Bean
    5455    public VloConfig vloConfig() {
    55         return vloConfigFactory().newConfig();
     56        try {
     57            return vloConfigFactory().newConfig();
     58        } catch (IOException ex) {
     59            throw new RuntimeException("Could not read VLO configuration", ex);
     60        }
    5661    }
    57    
     62
    5863    @Bean
    59     public VloConfigFactory vloConfigFactory(){
     64    public VloConfigFactory vloConfigFactory() {
    6065        return new DefaultVloConfigFactory();
    6166    }
     
    7580        return new SolrQueryFactoryImpl(vloConfig());
    7681    }
    77    
     82
    7883    @Bean
    7984    public SolrServer solrServer() {
Note: See TracChangeset for help on using the changeset viewer.