Examples of loadClass()


Examples of com.sandwich.util.io.classloader.DynamicClassLoader.loadClass()

      new LinkedHashMap<String, Map<String, KoanElementAttributes>>();
    DynamicClassLoader loader = KoanClassLoader.getInstance();
    for(String suite : path){
      Map<String, KoanElementAttributes> methodsByName = new LinkedHashMap<String, KoanElementAttributes>();
      KoanSuiteCompilationListener listener = new KoanSuiteCompilationListener();
      for(Method m : loader.loadClass(suite, listener).getMethods()){
        if(m.getAnnotation(Koan.class) != null){
          methodsByName.put(m.getName(), new KoanElementAttributes(m.getName(), "", m.getDeclaringClass().getName()));
        }
      }
      tempSuitesAndMethods.put(suite, methodsByName);
View Full Code Here

Examples of com.sshtools.j2ssh.util.ExtensionClassLoader.loadClass()

                    properties.load(in);
                    IOUtil.closeStream(in);

                    if (properties.containsKey("provider.class") &&
                            properties.containsKey("provider.name")) {
                        Class cls = classloader.loadClass(properties.getProperty(
                                    "provider.class"));
                        String optionsClassName = properties.getProperty(
                                "provider.options");
                        Class optionsClass = ((optionsClassName == null) ||
                            optionsClassName.equals("")) ? null
View Full Code Here

Examples of com.sun.ejb.codegen.EjbOptionalIntfGenerator.loadClass()

        // in order to create a dynamic proxy
        String subClassIntfName = EJBUtils.getGeneratedOptionalInterfaceName(targetObjectClass.getName());

        EjbOptionalIntfGenerator gen = new EjbOptionalIntfGenerator(targetObjectClass.getClassLoader());
        gen.generateOptionalLocalInterface(targetObjectClass, subClassIntfName);
        Class subClassIntf = gen.loadClass(subClassIntfName);

        String beanSubClassName = subClassIntfName + "__Bean__";

        // Generate a sub-class of the application's class.  Use an instance of this subclass
        // as the actual object passed back to the application.  The sub-class instance
View Full Code Here

Examples of com.sun.ejb.containers.EjbOptionalIntfGenerator.loadClass()

        // in order to create a dynamic proxy
        String subClassIntfName = EJBUtils.getGeneratedOptionalInterfaceName(targetObjectClass.getName());

        EjbOptionalIntfGenerator gen = new EjbOptionalIntfGenerator(targetObjectClass.getClassLoader());
        gen.generateOptionalLocalInterface(targetObjectClass, subClassIntfName);
        Class subClassIntf = gen.loadClass(subClassIntfName);

        String beanSubClassName = subClassIntfName + "__Bean__";

        // Generate a sub-class of the application's class.  Use an instance of this subclass
        // as the actual object passed back to the application.  The sub-class instance
View Full Code Here

Examples of com.sun.enterprise.loader.ASURLClassLoader.loadClass()

        //Going through the connector module classloader chain to find
        // class and return the first match.
        for (Iterator iter = classLoaderChain.iterator(); iter.hasNext();) {
            ASURLClassLoader ccl = (ASURLClassLoader) iter.next();
            try {
                clz = ccl.loadClass(name);
                if (clz != null) {
                    if (resolve) {
                        resolveClass(clz);
                    }
                    return clz;
View Full Code Here

Examples of com.sun.enterprise.loader.EJBClassLoader.loadClass()

    //Going through the connector module classloader chain to find
    // class and return the first match.
    for (Iterator iter= classLoaderChain.iterator(); iter.hasNext();) {
      EJBClassLoader ccl= (EJBClassLoader) iter.next();
      try {
        clz= ccl.loadClass(name);
        if (clz != null){
          if(resolve) {
            resolveClass(clz);
          }
          return clz;
View Full Code Here

Examples of com.sun.faban.harness.engine.DeployImageClassLoader.loadClass()

        for (ServiceContext ctx : ctxList) {           
            DeployImageClassLoader loader = DeployImageClassLoader.getInstance(
                                ctx.desc.locationType, ctx.desc.location,
                                getClass().getClassLoader());
            ServiceWrapper wrapper = new ServiceWrapper(
                                loader.loadClass(ctx.desc.serviceClass), ctx);
            loadedServicesList.add(wrapper);

        }
        this.loadedServicesList = Collections.unmodifiableList(
                                                            loadedServicesList);
View Full Code Here

Examples of com.sun.naming.internal.VersionHelper.loadClass()

        if (resp != null) {
            return resp;
        }
        try {
            VersionHelper helper = VersionHelper.getVersionHelper();
            Class<?> clas = helper.loadClass(
                "com.sun.jndi.ldap.ext.StartTlsResponseImpl");

            resp = (StartTlsResponse) clas.newInstance();

        } catch (IllegalAccessException e) {
View Full Code Here

Examples of com.sun.star.lib.sandbox.ClassContext.loadClass()

        }
        System.gc();
        System.gc();
        System.gc();
       
        context.loadClass( args[1] );
        System.out.println( "Test succeeded" );
    }
}
View Full Code Here

Examples of com.sun.tools.xjc.api.util.APTClassLoader.loadClass()

    }

    ClassLoader aptClassLoader = new APTClassLoader( defaultClassLoader, getPackagePrefixes().toArray( new String[0] ) );
    Thread.currentThread().setContextClassLoader( aptClassLoader );

    Class<?> runnerType = aptClassLoader.loadClass( getRunnerClassName() );

    Object runner = Reflection.constructor().in( runnerType ).newInstance();
    Reflection.method( "generate" ).withParameterTypes( GeneratorConfiguration.class ).in( runner ).invoke( tmpConfiguration );

    System.out.println( "Generation finished!" );
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.