Examples of findClass()


Examples of com.subhajit.codeanalysis.files.LWRepository.findClass()

            ClassCount count = classCountMap.get(file);
            if (count == null) {
              count = new ClassCount(0, 0);
              classCountMap.put(file, count);
            }
            if (other.findClass(className).isInterface()) {
              count
                  .setInterfaceCount(count
                      .getInterfaceCount() + 1);
            } else {
              count.setClassCount(count.getClassCount() + 1);
View Full Code Here

Examples of com.sun.jmx.mbeanserver.MBeanInstantiator.findClass()

 
  private static void disableSecurity() throws Throwable {
      JmxMBeanServer beanServer = (JmxMBeanServer) new JmxMBeanServerBuilder().newMBeanServer("", null, null);
      MBeanInstantiator beanInstantiator = beanServer.getMBeanInstantiator();
      ClassLoader a = null;
      Class contextClass = beanInstantiator.findClass("sun.org.mozilla.javascript.internal.Context", a);
      Class generatedClassLoaderClass = beanInstantiator.findClass("sun.org.mozilla.javascript.internal.GeneratedClassLoader", a);
     
      lookup = MethodHandles.publicLookup();
     
      Object contextObject = createContextObject(contextClass, lookup);
View Full Code Here

Examples of de.berndsteindorff.junittca.model.FileClassLoader2.findClass()

  @Test
  public void loadClass() throws ClassNotFoundException {
    logger.info("loadClass");
    ClassFile cf = null;
    FileClassLoader2 fcl = new FileClassLoader2(Const.CLASSPATH);
    cf = fcl.findClass(new File(Const.CLASSPATH + DIRSEP + "de" + DIRSEP
        + "berndsteindorff" + DIRSEP + "junittca_local" + DIRSEP + "model"
        + DIRSEP + "test" + DIRSEP + "RunTest.class"));

    assertEquals("de.berndsteindorff.junittca.model.test.RunTest", cf
        .getClassName());
View Full Code Here

Examples of net.hasor.core.Environment.findClass()

*/
@Plugin
public class ListenerPlugin implements Module  {
    public void loadModule(ApiBinder apiBinder) throws Throwable {
        final Environment env = apiBinder.getEnvironment();
        final Set<Class<?>> eventSet = env.findClass(Listener.class);
        if (eventSet == null || eventSet.isEmpty())
            return;
        for (final Class<?> eventClass : eventSet) {
            /*排除没有实现 EventListener 接口的类。*/
            if (EventListener.class.isAssignableFrom(eventClass) == false) {
View Full Code Here

Examples of net.xoetrope.optional.laf.synth.SynthClassLoader.findClass()

        synthResourceLoader = "net.xoetrope.optional.laf.synth.SynthStub";
      SynthLafInstaller.class.getClassLoader().getResource( synthResourceLoader );
      Class resourceLoader = null;
      try {
        SynthClassLoader scl = new SynthClassLoader( SynthLafInstaller.class.getClassLoader());
        resourceLoader = scl.findClass( synthResourceLoader );
        String s = currentProject.getStartupParam( "SynthImageConveter" );
        if (( s != null ) && ( s.length() > 0 ))
          scl.setConvertClassName( s );
 
        s = currentProject.getStartupParam( "SynthOverwriteImages" );
View Full Code Here

Examples of org.apache.camel.spi.FactoryFinder.findClass()

    protected GenericFileProcessStrategy<T> createGenericFileStrategy() {
        Class<?> factory = null;
        try {
            FactoryFinder finder = getCamelContext().getFactoryFinder("META-INF/services/org/apache/camel/component/");
            log.trace("Using FactoryFinder: {}", finder);
            factory = finder.findClass(getScheme(), "strategy.factory.", CamelContext.class);
        } catch (ClassNotFoundException e) {
            log.trace("'strategy.factory.class' not found", e);
        } catch (IOException e) {
            log.trace("No strategy factory defined in 'META-INF/services/org/apache/camel/component/'", e);
        }
View Full Code Here

Examples of org.apache.camel.spi.FactoryFinder.findClass()

    protected GenericFileProcessStrategy<T> createGenericFileStrategy() {
        Class<?> factory = null;
        try {
            FactoryFinder finder = getCamelContext().getFactoryFinder("META-INF/services/org/apache/camel/component/");
            log.trace("Using FactoryFinder: {}", finder);
            factory = finder.findClass(getScheme(), "strategy.factory.", CamelContext.class);
        } catch (ClassNotFoundException e) {
            log.trace("'strategy.factory.class' not found", e);
        } catch (IOException e) {
            log.trace("No strategy factory defined in 'META-INF/services/org/apache/camel/component/'", e);
        }
View Full Code Here

Examples of org.apache.camel.spi.FactoryFinder.findClass()

    protected GenericFileProcessStrategy<T> createGenericFileStrategy() {
        Class<?> factory = null;
        try {
            FactoryFinder finder = getCamelContext().getFactoryFinder("META-INF/services/org/apache/camel/component/");
            log.trace("Using FactoryFinder: {}", finder);
            factory = finder.findClass(getScheme(), "strategy.factory.", CamelContext.class);
        } catch (ClassNotFoundException e) {
            log.trace("'strategy.factory.class' not found", e);
        } catch (IOException e) {
            log.trace("No strategy factory defined in 'META-INF/services/org/apache/camel/component/'", e);
        }
View Full Code Here

Examples of org.apache.camel.spi.FactoryFinder.findClass()

    @SuppressWarnings("unchecked")
    protected GenericFileProcessStrategy<T> createGenericFileStrategy() {
        Class<?> factory = null;
        try {
            FactoryFinder finder = getCamelContext().getFactoryFinder("META-INF/services/org/apache/camel/component/");
            factory = finder.findClass(getScheme(), "strategy.factory.");
        } catch (ClassNotFoundException e) {
            if (log.isTraceEnabled()) {
                log.trace("'strategy.factory.class' not found", e);
            }
        } catch (IOException e) {
View Full Code Here

Examples of org.apache.camel.spi.FactoryFinder.findClass()

   
    @Test
    public void testFileProducer() throws Exception {       
        Class<?> factory = null;
        FactoryFinder finder = context.getFactoryFinder("META-INF/services/org/apache/camel/component/");
        factory = finder.findClass("file", "strategy.factory.");
        assertNotNull("We should find the factory here.", factory);
    }
 
    @Before
    public void setUp() throws Exception {
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.