Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between runtime reflection, runtime bytecode generation and .....

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have come across these terms..

source generation, runtime reflection,runtime bytecode generation, and buildtime bytecode enhancement in many places .

Can u tell me what they mean and their differences??

Thx in adcvance,
A Kumar.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Source generation: generating a source file (f.e. XDoclet project)
Runtime reflection: retrieving info about objects at runtime (Java Reflection API java.lang.reflect package)
Runtime bytecode generation: creating classes at runtime (by creating their bytecode) (see cglib, javassist, ect)
Buildtime bytecode enhancement: modification of the bytecode created by the java compiler in a post-compilation process

--
:alex |.::the_mindstorm::.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx but can u provide some more details.../resources...

especially the latter 2 terms

Runtime bytecode generation, Buildtime bytecode enhancement

And where exactly..under what circumstances....these are all used...

Thx in adv,
A Kumar
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you really need? Pls be more specific and I will try to answer.

--
:alex |.::the_mindstorm::.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean ....


Why do we need them in the first place..


What are the places / circumstances under which we opt for these??

Thx in advance..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic