Examples of PluginClassLoader


Examples of com.arjuna.ats.tools.objectstorebrowser.PluginClassloader

    public static void initialiseRepository(File pluginDir)
    {
  try
  {
      PluginClassloader classloader = new PluginClassloader(STATE_VIEWER_JAR_PREFIX, null, JAR_MANIFEST_SECTION_NAME, pluginDir);
      Object[] plugins = classloader.getPlugins();
     
      for (int count=0;count<plugins.length;count++)
      {
                if ( plugins[count] instanceof StateViewerInterface )
                {
View Full Code Here

Examples of com.arjuna.ats.tools.objectstorebrowser.PluginClassloader

    public static void initialiseRepository(File pluginDir)
    {
  try
  {
      PluginClassloader classloader = new PluginClassloader(STATE_VIEWER_JAR_PREFIX, null, JAR_MANIFEST_SECTION_NAME, pluginDir);
      Object[] plugins = classloader.getPlugins();
     
      for (int count=0;count<plugins.length;count++)
      {
                if ( plugins[count] instanceof StateViewerInterface )
                {
View Full Code Here

Examples of de.zib.scalaris.examples.wikipedia.plugin.PluginClassLoader

     */
    @SuppressWarnings("unchecked")
    protected synchronized boolean loadPlugins() {
        final String pluginDir = getServletContext().getRealPath("/WEB-INF/plugins");
        try {
            PluginClassLoader pcl = new PluginClassLoader(pluginDir, new Class[] {WikiPlugin.class});
            List<Class<?>> plugins = pcl.getClasses(WikiPlugin.class);
            if (plugins != null) {
                for (Class<?> clazz: plugins) {
                    WikiPlugin plugin;
                    try {
                        plugin = ((Class<WikiPlugin>) clazz).newInstance();
View Full Code Here

Examples of giggler.boot.PluginClassLoader

    private boolean isDependency(Object instance, Object linked) {
       
        if (isClassPathLoaded(instance) || isClassPathLoaded(linked))
            return false;
       
        PluginClassLoader pluginClassLoader = getClassLoader(instance);
       
        if (pluginClassLoader == null)
            return false;
       
        ClassLoader classLoader = getClassLoader(linked);

        if (classLoader == null)
            return false;

        return pluginClassLoader.isDependency(classLoader);
    }
View Full Code Here

Examples of giggler.boot.PluginClassLoader

    private void removeDependency(Plugin plugin, Plugin superiorPlugin) {

        if (isClassPathLoaded(plugin) || isClassPathLoaded(superiorPlugin))
            return;

        PluginClassLoader pluginClassLoader = getClassLoader(plugin);
       
        if (pluginClassLoader == null)
            return;
       
        ClassLoader classLoader = getClassLoader(superiorPlugin);

        if (classLoader == null)
            return;

        pluginClassLoader.removeDependency(classLoader);
    }
View Full Code Here

Examples of giggler.boot.PluginClassLoader

    private void addDependency(Plugin plugin, Plugin dependency) {
       
        if (isClassPathLoaded(plugin) || isClassPathLoaded(dependency))
            return;
       
        PluginClassLoader pluginClassLoader = getClassLoader(plugin);
       
        if (pluginClassLoader == null)
            throw new IllegalPluginException("plugin '"+plugin.getName()+"' can not have dependencies");
       
        ClassLoader classLoader = getClassLoader(dependency);

        if (classLoader == null)
            throw new IllegalPluginException("plugin '"+dependency.getName()+"' can not be set as dependency");

        log.info("["+plugin.getName()+"] dependent from ["+dependency.getName()+"]");
       
        pluginClassLoader.addDependency(classLoader);
    }
View Full Code Here

Examples of org.apache.nutch.plugin.PluginClassLoader

    Extension[] extensions = point.getExtensions();

    for (int i = 0; i < extensions.length; i++) {
      Extension extension = extensions[i];

      PluginClassLoader loader = extension.getDescriptor().getClassLoader();

      // classloaders.add(loader);

      URL[] urls = loader.getURLs();

      for (int k = 0; k < urls.length; k++) {
        URL url = urls[k];
        if (!seen.contains(url)) {
          paths.add(url);
View Full Code Here

Examples of org.bukkit.plugin.java.PluginClassLoader

  protected static void loadPseudoPlugin(Permissions parent,
      ClassLoader classLoader) {
    // create a pseudo-Permissions plugin as compatibility layer
    JavaPluginLoader pluginLoader = (JavaPluginLoader) parent
        .getPluginLoader();
    PluginClassLoader pluginClassLoader = new PluginClassLoader(
        pluginLoader, new java.net.URL[] {}, classLoader.getParent());
    String version = com.nijikokun.bukkit.Permissions.Permissions.version;
    PluginDescriptionFile description = new PluginDescriptionFile(
        "Permissions", version,
        "com.nijikokun.bukkit.Permissions.Permissions");
View Full Code Here

Examples of org.earth3d.jearth.plugins.PluginClassLoader

   
    List<String> depends = getDependencyList(jarFile);
   
    // create a classloader for this plugin
    // add main classloader
    PluginClassLoader pcl = new PluginClassLoader(new URL[] {file.toURL()},
        this.getClass().getClassLoader());
   
    // add it to the list
    classloaderlist.put(file.getName(), pcl);
   
    // add all dependend classloaders
    for(String parent : depends) {
      pcl.addParent(classloaderlist.get(parent));
    }
   
    // start the plugin class
    System.out.println("Open jarfile");
    Properties jprop = getJarProperties(jarFile);
    String startClass = jprop.getProperty("pluginclass");
    System.out.println("Start plugin");
    Earth3dPlugin ep = (Earth3dPlugin) pcl.findClass(startClass).newInstance();
    ep.setConfiguration(conf);
    ep.setExtensionManager(extensionManager);
    ep.init();
   
    System.out.println("Started plugin");
View Full Code Here

Examples of org.eurekaj.app.classloader.PluginClassLoader

  private static PluginClassLoader eurekaJClassLoader;
 
  public static void main(String[] args) throws Exception {
    configure();
   
    eurekaJClassLoader = new PluginClassLoader(Thread.currentThread().getClass().getClassLoader());
   
    //-Dorg.eurekaj.webappDirectory=/srv/eurekaj/webapp -Dorg.eurekaj.pluginDirectory=/srv/eurekaj/plugins
    String pluginsDir = System.getProperty("org.montric.pluginDirectory", "/srv/montric/plugins");
    String webappDir = System.getProperty("org.montric.webappDirectory", "/srv/eurekaj/webapp");
    System.setProperty("basedir", webappDir);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.