Examples of ClassLoaderFactory


Examples of org.jboss.deployers.structure.spi.ClassLoaderFactory

/* 45 */     setAllInputs(true);
/*    */   }
/*    */
/*    */   public void deploy(DeploymentUnit unit) throws DeploymentException
/*    */   {
/* 50 */     ClassLoaderFactory factory = (ClassLoaderFactory)unit.getAttachment(ClassLoaderFactory.class);
/* 51 */     if (factory == null)
/* 52 */       factory = this;
/* 53 */     unit.createClassLoader(factory);
/*    */   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.ClassLoaderFactory

/* 53 */     unit.createClassLoader(factory);
/*    */   }
/*    */
/*    */   public void undeploy(DeploymentUnit unit)
/*    */   {
/* 58 */     ClassLoaderFactory factory = (ClassLoaderFactory)unit.getAttachment(ClassLoaderFactory.class);
/* 59 */     if (factory == null)
/* 60 */       factory = this;
/* 61 */     unit.removeClassLoader(factory);
/*    */   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.ClassLoaderFactory

      setAllInputs(true);
   }

   public void deploy(DeploymentUnit unit) throws DeploymentException
   {
      ClassLoaderFactory factory = unit.getAttachment(ClassLoaderFactory.class);
      if (factory == null)
         factory = this;
      unit.createClassLoader(factory);
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.ClassLoaderFactory

      unit.createClassLoader(factory);
   }
  
   public void undeploy(DeploymentUnit unit)
   {
      ClassLoaderFactory factory = unit.getAttachment(ClassLoaderFactory.class);
      if (factory == null)
         factory = this;
      unit.removeClassLoader(factory);
   }
View Full Code Here

Examples of org.xmlBlaster.util.classloader.ClassLoaderFactory

   /*
    * Start the server
    */
   public void run() {
      ClassLoaderFactory factory = glob.getClassLoaderFactory();
      URLClassLoader cl = null;

      try {
         cl = factory.getXmlBlasterClassLoader();
         if( log.isLoggable(Level.FINE)) log.fine("Get first instance of org.xmlBlaster.Main via own class loader.");

         this.xmlBlasterMain = (I_Main)cl.loadClass("org.xmlBlaster.Main").newInstance();
         // java.util.Properties props = glob.getProperty().getProperties();
         // this.xmlBlasterMain.init(props);
View Full Code Here

Examples of org.xmlBlaster.util.classloader.ClassLoaderFactory

         log.warning("The plugin class name is null, please check the property setting of '" + pluginInfo.toString() + "' " + Global.getStackTraceAsString(null));
         throw new XmlBlasterException(glob, ErrorCode.RESOURCE_CONFIGURATION, ME,
               "The plugin class name is null, please check the property setting of '" + pluginInfo.toString() + "'");
      }
      try {
         ClassLoaderFactory factory = glob.getClassLoaderFactory();
         if (factory != null) {
            if (log.isLoggable(Level.FINE)) log.fine("useXmlBlasterClassloader=true: Trying Class.forName('" + pluginName + "') ...");

            URLClassLoader myLoader = factory.getPluginClassLoader(pluginInfo);
            if (log.isLoggable(Level.FINE)) log.fine("Found " + myLoader.getURLs().length + " plugin specific jar files for '" + pluginName + "' preferenced by xmlBlaster classLoader");

            plugin = (I_Plugin)myLoader.loadClass(pluginName).newInstance();
            if (log.isLoggable(Level.FINE)) log.fine("Found I_Plugin '" + pluginName + "', loaded by PluginClassLoader");
         }
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.