Package org.java.plugin.registry

Examples of org.java.plugin.registry.Extension


          ExtensionPoint point = this.getPluginManager().getRegistry().getExtensionPoint(core.getId(), this.getAlgorithmExtensionPoint());
         
          // iterate over the connected extension points
          for (Iterator<Extension> it = point.getConnectedExtensions().iterator(); it.hasNext();) {
          try {
            Extension ext = it.next();
                  PluginDescriptor descr = ext.getDeclaringPluginDescriptor();
                 
                  this.getPluginManager().activatePlugin(descr.getId());
           
            // extracting parameters
            Parameter classParam = ext.getParameter(PluginCore.PARAMETER_CLASS);
           
            // extracting plugin class or builder clas
            ClassLoader classLoader = this.getPluginManager().getPluginClassLoader(descr);
                  Class pluginClass = null// class for the plugin (InferenceAlgorithmOptionPanel)
                  pluginClass = classLoader.loadClass(classParam.valueAsString());
View Full Code Here


        .getPluginDescriptor("org.openstreetmap.osmosis.core.plugin.Core");

    ExtensionPoint point = pluginManager.getRegistry().getExtensionPoint(core.getId(), "Task");
    for (Iterator<Extension> it = point.getConnectedExtensions().iterator(); it.hasNext();) {

      Extension ext = it.next();
      PluginDescriptor descr = ext.getDeclaringPluginDescriptor();
      try {
        pluginManager.enablePlugin(descr, true);
        pluginManager.activatePlugin(descr.getId());
        ClassLoader classLoader = pluginManager.getPluginClassLoader(descr);
        loadPluginClass(ext.getParameter("class").valueAsString(), classLoader);
      } catch (PluginLifecycleException e) {
        throw new OsmosisRuntimeException("Cannot load JPF-plugin '" + ext.getId()
            + "' for extensionpoint '" + ext.getExtendedPointId() + "'", e);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.java.plugin.registry.Extension

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.