Saturday, June 21, 2014
Wednesday, June 18, 2014
Monday, June 9, 2014
Wednesday, June 4, 2014
Injecting byte code using class loader
Annotation Processor Tool (APT)
source -(compile and performs modifications at model level)-> bytecode already modified - regular class loader -> loads class into memory
Post-Compiling processing
source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loads class into memory
Runtime modifications
source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loaded into memory - javassist proxy -> modified class - javassist hot swapper -> re-modified class
Source :stackoverflow.com
source -(compile and performs modifications at model level)-> bytecode already modified - regular class loader -> loads class into memory
Post-Compiling processing
source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loads class into memory
Runtime modifications
source -compile -> bytecode -post-compile-> modified bytecode - regular class loader -> loaded into memory - javassist proxy -> modified class - javassist hot swapper -> re-modified class
Source :stackoverflow.com
Integration testing scopes
Application scope - Active for all methods in a test class
Session scope - Active for all methods in a test class
Request scope - Active for a single test method
Session scope - Active for all methods in a test class
Request scope - Active for a single test method
Monday, June 2, 2014
Sunday, June 1, 2014
Subscribe to:
Posts (Atom)