org.jboss.aop.standalone
Class Compiler

java.lang.Object
  extended by org.jboss.aop.standalone.Compiler

public class Compiler
extends Object

takes jar or class files and adds needed jboss bytecode

Version:
$Revision: 79707 $
Author:
Bill Burke

Field Summary
static URLClassLoader loader
           
 boolean optimized
           
 boolean suppress
           
 boolean verbose
           
 
Constructor Summary
Compiler()
           
 
Method Summary
 void compile(String[] args)
           
 void compileFile(org.jboss.aop.standalone.Compiler.CompilerClassInfo info)
           
 boolean isJarFile(File src)
           
 boolean loadFile(File file)
          Loads the file and, if it is an advised class, sets its advisor field as accessible.
static void main(String[] args)
           
 void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public boolean verbose

suppress

public boolean suppress

optimized

public boolean optimized

loader

public static URLClassLoader loader
Constructor Detail

Compiler

public Compiler()
Method Detail

isJarFile

public boolean isJarFile(File src)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

usage

public void usage()

compile

public void compile(String[] args)
             throws Exception
Throws:
Exception

loadFile

public boolean loadFile(File file)
                 throws Exception
Loads the file and, if it is an advised class, sets its advisor field as accessible.

Parameters:
file - the file of the class to be loaded
Returns:
true is file contains an advised class.
Throws:
Exception

compileFile

public void compileFile(org.jboss.aop.standalone.Compiler.CompilerClassInfo info)
                 throws Exception
Throws:
Exception


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.