Package org.opoo.press.importer

Examples of org.opoo.press.importer.Importer


   */
  @Override
  public void doImport(Site site, String importer, Map<String, Object> params) throws Exception {
    @SuppressWarnings("unchecked")
    Map<String,String> importers = (Map<String, String>) site.getConfig().get("importers");
    Importer importerInstance = null;
    if(importers != null){
      String className = importers.get(importer);
      if(className != null){
        importerInstance = (Importer) ClassUtils.newInstance(className, site);
      }
    }
   
    if(importerInstance == null){
      throw new Exception("No valid importer: " + importer);
    }
   
    importerInstance.doImport(site, params);
  }
View Full Code Here

TOP

Related Classes of org.opoo.press.importer.Importer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.