Examples of RepositoryClassLoader


Examples of org.apache.cocoon.components.classloader.RepositoryClassLoader

    protected RepositoryClassLoader repositoryLoader;
   
    public ParanoidCocoonServlet() {
        super();
        // Override the parent class classloader
        this.repositoryLoader = new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
        super.classLoader = this.repositoryLoader;
    }
View Full Code Here

Examples of org.apache.cocoon.components.classloader.RepositoryClassLoader

     /**
      * get the classloader to use for Cocoon instantiation
      */
     protected RepositoryClassLoader buildInitClassLoader() {
         return new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
     }
View Full Code Here

Examples of org.apache.cocoon.components.classloader.RepositoryClassLoader

     /**
      * get the classloader to use for Cocoon instantiation
      */
     protected RepositoryClassLoader buildInitClassLoader() {
         return new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
     }
View Full Code Here

Examples of org.apache.cocoon.components.classloader.RepositoryClassLoader

     /**
      * get the classloader to use for Cocoon instantiation
      */
     protected RepositoryClassLoader buildInitClassLoader() {
         return new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
     }
View Full Code Here

Examples of org.apache.cocoon.components.classloader.RepositoryClassLoader

    protected RepositoryClassLoader repositoryLoader;
   
    public ParanoidCocoonServlet() {
        super();
        // Override the parent class classloader
        this.repositoryLoader = new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
        super.classLoader = this.repositoryLoader;
    }
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader

   {
      log.info("+++ Begin testSystemClasses");
      UnifiedLoaderRepository3 parent = new UnifiedLoaderRepository3();
      HeirarchicalLoaderRepository3 repository0 = new HeirarchicalLoaderRepository3(parent);
      URL j0URL = getDeployURL("tests-dummy.jar");
      RepositoryClassLoader ucl0 = repository0.newClassLoader(j0URL, true);

      Class c0 = ucl0.loadClass("java.sql.SQLException");
      StringBuffer info = new StringBuffer();
      ClassLoaderUtils.displayClassInfo(c0, info);
      log.info("Loaded c0: "+info);

      HeirarchicalLoaderRepository3 repository1 = new HeirarchicalLoaderRepository3(parent);
      repository1.setUseParentFirst(false);
      RepositoryClassLoader ucl1 = repository1.newClassLoader(j0URL, true);     
      Class c1 = ucl1.loadClass("java.sql.SQLException");
      info.setLength(0);
      ClassLoaderUtils.displayClassInfo(c1, info);
      log.info("Loaded c1: "+info);

      Class c2 = ucl1.loadClass("java.sql.SQLWarning");
      info.setLength(0);
      ClassLoaderUtils.displayClassInfo(c2, info);
      log.info("Loaded c2: "+info);
   }
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader

   {
      log.info("+++ Begin testSystemClasses2");
      UnifiedLoaderRepository3 parent = new UnifiedLoaderRepository3();
      HeirarchicalLoaderRepository3 repository0 = new HeirarchicalLoaderRepository3(parent);
      URL j0URL = getDeployURL("java-sql.jar");
      RepositoryClassLoader ucl0 = repository0.newClassLoader(j0URL, true);

      Class c0 = ucl0.loadClass("java.sql.SQLException");
      StringBuffer info = new StringBuffer();
      ClassLoaderUtils.displayClassInfo(c0, info);
      log.info("Loaded c0: "+info);

      HeirarchicalLoaderRepository3 repository1 = new HeirarchicalLoaderRepository3(parent);
      repository1.setUseParentFirst(false);
      RepositoryClassLoader ucl1 = repository1.newClassLoader(j0URL, true);     
      Class c1 = ucl1.loadClass("java.sql.SQLException");
      info.setLength(0);
      ClassLoaderUtils.displayClassInfo(c1, info);
      log.info("Loaded c1: "+info);

      Class c2 = ucl1.loadClass("java.sql.SQLWarning");
      info.setLength(0);
      ClassLoaderUtils.displayClassInfo(c2, info);
      log.info("Loaded c2: "+info);
   }
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader

   private ClassLoader initBootLibrariesOld() throws Exception
   {
      List<URL> list = getBootURLs();
     
      // Create loaders for each URL
      RepositoryClassLoader loader = null;
      for (URL url : list)
      {
         log.debug("Creating loader for URL: " + url);

         // This is a boot URL, so key it on itself.
         Object[] args = {url, Boolean.TRUE};
         String[] sig = {"java.net.URL", "boolean"};
         loader = (RepositoryClassLoader) mbeanServer.invoke(DEFAULT_LOADER_NAME, "newClassLoader", args, sig);
      }
      bootstrapUCLName = loader.getObjectName();
      mbeanServer.registerMBean(loader, bootstrapUCLName);
      return loader;
   }
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader

                  if (c == null)
                  {
                     continue;
                  }
                  log.debug("found class in repository " + name);
                  RepositoryClassLoader cl = (RepositoryClassLoader) c.getClassLoader();
                  classDefinition = loadByteCode(cl, className);
                  break;
               }
               catch (Exception e)
               {
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader

   public boolean isUnloadedClassLoader()
   {
      if (getClassLoader() instanceof RepositoryClassLoader)
      {
         RepositoryClassLoader rcl = (RepositoryClassLoader) getClassLoader();
         return rcl.getLoaderRepository() == null;
      }
      return false;
   }
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.