Package org.openbp.common.classloader

Examples of org.openbp.common.classloader.XClassLoaderConfiguration.addRepository()


      {
        pluginDir = r.getFile().getParentFile();
        File [] jars = pluginDir.listFiles(fnf);
        for (int i = 0; i < jars.length; ++i)
        {
          config.addRepository(jars[i].getAbsolutePath());
          LogUtil.info(getClass(), "Loading repository for plugin $0: $1.", pluginName, jars[i]);
        }

        cl = new XClassLoader(config);
      }
View Full Code Here


    {
      // Generator classes directory exists, set up class loader
      XClassLoaderConfiguration config = new XClassLoaderConfiguration();
      config.setName("Generator template class loader");
      config.setParentClassLoader(getClass().getClassLoader());
      config.addRepository(classesDir);
      try
      {
        classLoader = new XClassLoader(config);
      }
      catch (Exception e)
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.