Package org.vosao.common

Examples of org.vosao.common.PluginException


   */
  public void install(String filename, byte[] data) throws IOException,
      PluginException, DocumentException {
    Map<String, WarItem> war = readWar(data);
    if (!war.containsKey(VOSAO_PLUGIN)) {
      throw new PluginException(VOSAO_PLUGIN + " not found");
    }
    PluginEntity plugin = readPluginConfig(war.get(VOSAO_PLUGIN));
    if (StringUtils.isEmpty(plugin.getEntryPointClass())) {
      throw new PluginException("Entry point class not defined.");
    }
    PluginEntity p = getDao().getPluginDao().getByName(plugin.getName());
    if (p != null) {
      plugin.setConfigData(p.getConfigData());
      uninstall(p);
View Full Code Here

TOP

Related Classes of org.vosao.common.PluginException

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.