Examples of loadClass()


Examples of lineage2.commons.compiler.MemoryClassLoader.loadClass()

          continue;
        }
       
        try
        {
          clazz = classLoader.loadClass(name);
          if (Modifier.isAbstract(clazz.getModifiers()))
          {
            continue;
          }
          classes.add(clazz);
View Full Code Here

Examples of net.canarymod.CanaryClassLoader.loadClass()

            try {
                PropertiesFile inf = new PropertiesFile(file.getAbsolutePath(), "Canary.inf");
                CanaryClassLoader ploader = new CanaryClassLoader(file.toURI().toURL(), DatabaseLoader.class.getClassLoader());
                String mainclass = inf.getString("main-class");
                String dbName = inf.getString("database-name");
                Class<?> dbClass = ploader.loadClass(mainclass);

                Database db = (Database) dbClass.newInstance();
                if (db != null) {
                    Database.Type.registerDatabase(dbName, db);
                }
View Full Code Here

Examples of net.jini.loader.pref.PreferredClassLoader.loadClass()

      PreferredClassLoader loader =
    PreferredClassLoader.newInstance(new URL[] {fooUrl},
        ClassLoader.getSystemClassLoader(),
        "not used", true);

      fooClass = loader.loadClass("Foo");

      System.err.println("Foo class incorrectly loaded from: " +
             fooClass.getProtectionDomain().
             getCodeSource().getLocation());
  } catch (SecurityException e) {
View Full Code Here

Examples of net.sf.jsptest.utils.CustomClassLoader.loadClass()

        return loadJspClass(compilation.getClassName());
    }

    private Class loadJspClass(String jspClassName) throws ClassNotFoundException {
        ClassLoader cl = new CustomClassLoader(getOutputDirectory());
        return cl.loadClass(jspClassName);
    }
}
View Full Code Here

Examples of net.sf.robocode.core.EngineClassLoader.loadClass()

  @Test
  public void engineAllowed() throws ClassNotFoundException {
    final ClassLoader engineLoader = new EngineClassLoader(ClassLoader.getSystemClassLoader());

    engineLoader.loadClass("net.sf.robocode.host.proxies.BasicRobotProxy");
    final Class<?> c = engineLoader.loadClass("net.sf.robocode.host.proxies.BasicRobotProxy");

    Assert.assertEquals(engineLoader, c.getClassLoader());
  }
View Full Code Here

Examples of net.sf.robocode.host.security.RobotClassLoader.loadClass()

  }

  @Test
  public void robotAllowed() throws ClassNotFoundException {
    RobotClassLoader cl = new RobotClassLoader(classPath, goodRobot);
    final Class<?> c = cl.loadClass("robocode.Robot", true);

    Assert.assertEquals(Container.systemLoader, c.getClassLoader());
  }

  @Test
View Full Code Here

Examples of net.sourceforge.cruisecontrol.utilities.PluginManager.loadClass()

   
    // initialize the ext location
    PluginManager pluginManager = new PluginManager( "/java/cruisecontrol-2.2.1/main/dist" );
   
    try {
      Class theMainWindow = pluginManager.loadClass( "net.sourceforge.cruisecontrol.gui.MainWindow" );
      Method theBuildMethod = theMainWindow.getDeclaredMethod( "buildWindow", new Class[0] );
      theBuildMethod.invoke( theMainWindow, new Object[0] );
    }
    catch (Exception e ) {
      System.out.println( e.toString() );
View Full Code Here

Examples of net.sourceforge.javautil.classloader.impl.ClassContext.loadClass()

      mainClassName = manifest.getMainAttributes().getValue("Main-Class");
    }
    Thread.currentThread().setContextClassLoader(context);
   
    if (config.getMainClass() != null)
      this.boot(ClassCache.getFor(context.loadClass(mainClassName)), this);
  }
 
  /**
   * This will by default detect the {@link #LIBDIRS_PROPERTY}
   *
 
View Full Code Here

Examples of net.xeoh.plugins.base.impl.classpath.ClassPathManager.loadClass()

        // final JARInformation jarInformation = jarCache.getJARInformation(name);
        // final String file = jarCache.classTofile(name);

        try {
            // Get class of the candidate
            final Class<?> possiblePlugin = classPathManager.loadClass(location, name);

            // Don't load plugins already spawned.
            if (name.startsWith("net.xeoh.plugins.base") ||
                name.startsWith("net.xeoh.plugins.diagnosis.") ||
                name.startsWith("net.xeoh.plugins.informationbroker.")) return;
View Full Code Here

Examples of nu.fw.jeti.backend.URLClassloader.loadClass()

          {
            public void actionPerformed(ActionEvent e)
            {
              URLClassloader classloader = (URLClassloader)UIManager.get("ClassLoader");
              try {
                Class s = classloader.loadClass("org.compiere.plaf.CompierePLAFEditor");
                Constructor c = s.getConstructor(new Class[] {Frame.class,boolean.class});
                c.newInstance(new Object[] {backend.getMainFrame(),Boolean.TRUE});
                Class s2 = classloader.loadClass("org.compiere.util.Ini");
                Method m = s2.getMethod("saveProperties",new Class[] {boolean.class});
                m.invoke(null, new Object[] {Boolean.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.