Package org.jboss.bridger
Class Bridger
java.lang.Object
org.jboss.bridger.Bridger
- All Implemented Interfaces:
ClassFileTransformer
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintstatic voidTranslate all.classfiles in the given list of files and directories.byte[]transform(InputStream input) voidtransform(InputStream input, OutputStream output) voidtransform(RandomAccessFile file) byte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) voidtransformRecursive(File... files) Translate all.classfiles in the given list of files and directories.voidtransformRecursive(String... names) Translate all.classfiles in the given list of files and directories.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Constructor Details
-
Bridger
public Bridger()
-
-
Method Details
-
main
Translate all.classfiles in the given list of files and directories.- Parameters:
args- the file and directory names
-
transformRecursive
Translate all.classfiles in the given list of files and directories.- Parameters:
names- the file and directory names
-
transformRecursive
Translate all.classfiles in the given list of files and directories.- Parameters:
files- the files and directories
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException - Specified by:
transformin interfaceClassFileTransformer- Throws:
IllegalClassFormatException
-
transform
-
getTransformedMethodCount
public int getTransformedMethodCount() -
getTransformedMethodCallCount
public int getTransformedMethodCallCount() -
transform
public void transform(InputStream input, OutputStream output) throws IllegalClassFormatException, IOException -
transform
-