Search: in
Byte Code Engineering Library
Byte Code Engineering Library in Encyclopedia Encyclopedia
  Tutorials     Encyclopedia     Videos     Books     Software     DVDs  
       





Byte Code Engineering Library

The Byte Code Engineering Library (BCEL) is a project sponsored by the Apache Foundation previously under their Jakarta charter to provide a simple API for decomposing, modifying, and recomposing binary Java classes (I.e. bytecode). The project was conceived and developed by Markus Dahm prior to officially being donated to the Apache Jakarta foundation on 27 October 2001. BCEL is Java-centric at present, and does not currently have a backend that exposes other bytecode implementations (such as .NET bytecode, Python bytecode, etc.).

Uses

BCEL provides a simple library that exposes the internal aggregate components of a given Java class through its API as object constructs (as opposed to the disassembly of the lower-level opcodes). These objects also expose operations for modifying the binary bytecode, as well as generating new bytecode (via injection of new code into the existing code, or through generation of new classes altogether.) The BCEL library has been used in several diverse applications, such as:

  • Java Bytecode Decompiling, Obfuscation, and Refactoring
  • Performance and Profiling
Instrumentation calls that capture performance metrics can be injected into Java class binaries to examine memory/coverage data. (For example, injecting instrumentation at entry/exit points.)
  • Implementation of New Language Semantics
For example, Aspect-Oriented additions to the Java language have been implemented by using BCEL to decompose class structures for point-cut identification, and then again when reconstituting the class by injecting aspect-related code back into the binary. (See: AspectJ)
  • Static code analysis
FindBugs uses BCEL to analyze Java bytecode for code idioms which indicate bugs.

See also

  • ObjectWeb ASM
  • Javassist

External links

fr:Apache BCEL ko:Byte Code Engineering Library hu:Byte Code Engineering Library ru:Byte Code Engineering Library






Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Search for Byte Code Engineering Library in Tutorials
Search for Byte Code Engineering Library in Encyclopedia
Search for Byte Code Engineering Library in Videos
Search for Byte Code Engineering Library in Books
Search for Byte Code Engineering Library in Software
Search for Byte Code Engineering Library in DVDs
Search for Byte Code Engineering Library in Store




Advertisement




Byte Code Engineering Library in Encyclopedia
Byte_Code_Engineering_Library top Byte_Code_Engineering_Library

Home - Add TutorGig to Your Site - Disclaimer

©2011-2013 TutorGig.info All Rights Reserved. Privacy Statement