Examples of findClass()


Examples of org.apache.solr.core.SolrResourceLoader.findClass()

    }

    SolrResourceLoader loader = solrConfig.getResourceLoader();
    config.cacheImpl = config.args.get("class");
    config.regenImpl = config.args.get("regenerator");
    config.clazz = loader.findClass(config.cacheImpl);
    if (config.regenImpl != null) {
      config.regenerator = (CacheRegenerator) loader.newInstance(config.regenImpl);
    }
   
    return config;
View Full Code Here

Examples of org.apache.tapestry.IResourceResolver.findClass()

            String className = (String) entry.getValue();

            if (LOG.isDebugEnabled())
                LOG.debug("Creating service " + name + " as instance of " + className);

            Class serviceClass = resolver.findClass(className);

            try
            {
                IEngineService service = (IEngineService) serviceClass.newInstance();
                String serviceName = service.getName();
View Full Code Here

Examples of org.apache.tapestry.IResourceResolver.findClass()

            String className = (String) entry.getValue();

            if (LOG.isDebugEnabled())
                LOG.debug("Creating service " + name + " as instance of " + className);

            Class serviceClass = resolver.findClass(className);

            try
            {
                IEngineService service = (IEngineService) serviceClass.newInstance();
                String serviceName = service.getName();
View Full Code Here

Examples of org.apache.tapestry.IResourceResolver.findClass()

            String className = (String) entry.getValue();

            if (LOG.isDebugEnabled())
                LOG.debug("Creating service " + name + " as instance of " + className);

            Class serviceClass = resolver.findClass(className);

            try
            {
                IEngineService service = (IEngineService) serviceClass.newInstance();
                String serviceName = service.getName();
View Full Code Here

Examples of org.apache.tapestry.services.ClassFinder.findClass()

    private ClassFinder newClassFinder(String packageList, String className, Class resultClass)
    {
        ClassFinder finder = newMock(ClassFinder.class);

        expect(finder.findClass(packageList, className)).andReturn(resultClass);

        return finder;
    }

    public void testFound()
View Full Code Here

Examples of org.apache.tools.ant.AntClassLoader.findClass()

        }
        /* Now try to load the Jakara regexp jar from a specified classpath */
        try {
          log("Loading RegexpMatcher from " + regexpClasspath, Project.MSG_DEBUG);
          AntClassLoader loader = new AntClassLoader(getProject(), regexpClasspath);
          Class implClass = loader.findClass(DEFAULT_REGEXP_CLASS);
          return (RegexpMatcher) implClass.newInstance();
        } catch (Throwable t) {
          throw new BuildException(t);
        }
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation.findClass()

      }
      ICompilationUnit workingCopy = (ICompilationUnit) this.workingCopies.get(qualifiedTypeName);
      if (workingCopy != null) {
        answer = new NameEnvironmentAnswer(workingCopy, null /*no access restriction*/);
      } else {
        answer = location.findClass(
          sourceFileName, // doesn't include the file extension
          qPackageName,
          qSourceFileName)// doesn't include the file extension
      }
    } else {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation.findClass()

          qPackageName =  qBinaryFileName.substring(0, typeNameStart - 1);
          binaryFileName = qBinaryFileName.substring(typeNameStart);
        }
      }
      answer =
        location.findClass(
          binaryFileName,
          qPackageName,
          qBinaryFileName);
    }
    if (answer != null) {
View Full Code Here

Examples of org.codehaus.janino.UnitCompiler.findClass()

            if (className.startsWith("java.")) return null;

            // Check the already-parsed compilation units.
            for (int i = 0; i < JGrep.this.parsedCompilationUnits.size(); ++i) {
                UnitCompiler uc = (UnitCompiler) JGrep.this.parsedCompilationUnits.get(i);
                IClass res = uc.findClass(className);
                if (res != null) {
                    this.defineIClass(res);
                    return res;
                }
            }
View Full Code Here

Examples of org.earth3d.jearth.plugins.PluginClassLoader.findClass()

    // 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
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.