Package org.apache.bcel.util

Examples of org.apache.bcel.util.ClassLoaderRepository


        Class cls=(Class)i.next();
        contingencyLoader=cls.getClassLoader();
      }
    }

    classRepository = new ClassLoaderRepository( contingencyLoader );

    doStartup(packagePrefixes,openWorldAssumption);
    isInitialized = true;
  }
View Full Code Here


    public static void main(String[] argv) throws Exception {
        if (argv.length < 1) {
            System.err.println("Mandatory class name argument is missing.");
            return;
        }
        ClassLoaderRepository clr = new ClassLoaderRepository(NativeStubGenerator.class.getClassLoader());
        File f = null;
        if (argv.length > 1) {
            f = new File(argv[1]);
            if (!(f.exists() && f.isDirectory())) {
                System.err.println("Invalid output directory: " + argv[1]);
                return;
            }
        }
        JavaClass jc;
        try {
            jc = clr.loadClass(argv[0]);
        } catch (ClassNotFoundException e) {
            System.err.println("Class not found: " + argv[0]);
            return;
        }
        String pk = jc.getPackageName();
View Full Code Here

    private static boolean currentMethodStatic;

    public ContinuationClassLoader(ClassLoader parent) {
        super(parent);
        Repository.setRepository(new ClassLoaderRepository(parent));
    }
View Full Code Here

    public BCELWrapperGenerator()
    {
        m_codeGenerator = new BCELCodeGenerator();
        ClassLoader contextClassLoader =
                Thread.currentThread().getContextClassLoader();
        m_repository = new ClassLoaderRepository( contextClassLoader );
        m_bcelClassLoader =
            new BCELClassLoader( contextClassLoader );
    }
View Full Code Here

    public BCELWrapperGenerator()
    {
        m_codeGenerator = new BCELCodeGenerator();
        ClassLoader contextClassLoader =
                Thread.currentThread().getContextClassLoader();
        m_repository = new ClassLoaderRepository( contextClassLoader );
        m_bcelClassLoader =
            new BCELClassLoader( contextClassLoader );
    }
View Full Code Here

     * Stores the class loader and makes it the Repository's class loader.
     * @param aClassLoader class loader to resolve classes with.
     */
    public void setClassLoader(ClassLoader aClassLoader)
    {
        Repository.setRepository(new ClassLoaderRepository(aClassLoader));
        mClassLoader = aClassLoader;
    }
View Full Code Here

    private static boolean currentMethodStatic;

    public ContinuationClassLoader(ClassLoader parent) {
        super(parent);
        Repository.setRepository(new ClassLoaderRepository(parent));
    }
View Full Code Here

    private static boolean currentMethodStatic;

    public ContinuationClassLoader(ClassLoader parent) {
        super(parent);
        Repository.setRepository(new ClassLoaderRepository(parent));
    }
View Full Code Here

  public ClassInfo(String className, URLClassLoader classLoader)
      throws ClassNotFoundException {
    super();
    this.className = className;
    this.classLoader = classLoader;
    this.repository = new ClassLoaderRepository(classLoader);
    localRepository = true;
    javaClass = this.repository.loadClass(className);
  }
View Full Code Here

      ClassNotFoundException {
    super();
    this.className = className;
    this.classLoader = ClassUtils.newURLClassLoader(
        Arrays.asList(jarFiles), getClass().getClassLoader());
    this.repository = new ClassLoaderRepository(classLoader);
    localRepository = true;
    javaClass = this.repository.loadClass(className);

  }
View Full Code Here

TOP

Related Classes of org.apache.bcel.util.ClassLoaderRepository

Copyright © 2018 www.massapicom. 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.