Package org.jamesii.core.plugins.install

Examples of org.jamesii.core.plugins.install.XMLReader


   * @param url
   *          of the plug-in location.
   */
  public void loadPlugin(URL url) {

    XMLReader reader = new XMLReader();

    InputSource source = null;
    try {
      source = new InputSource(new FileInputStream(url.getFile()));
    } catch (FileNotFoundException e) {
      throw new PluginLoadException(
          "It was not possible to load the plugin at " + url, e);
    }

    IPluginData data = reader.readPluginXMLFile(source, url.getFile(), "");

    foundPlugins.add(data);

    // TODO load classes and register factories in registry

View Full Code Here


   * @param url
   *          of the plug-in location.
   */
  public void loadPluginType(URL url) {

    XMLReader reader = new XMLReader();

    InputSource source = null;
    try {
      source = new InputSource(new FileInputStream(url.getFile()));
    } catch (FileNotFoundException e) {
      throw new PluginLoadException(
          "It was not possible to load the plugin type at " + url, e);
    }

    IPluginTypeData data = reader.readPluginTypeXMLFile(source, url.getFile());

    foundPluginTypes.add(data);

    loadPlugInTypeClasses(data);

View Full Code Here

TOP

Related Classes of org.jamesii.core.plugins.install.XMLReader

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.