An attribute of the application?
Can you tell me what it is?
Chiba, I mean can i change and view a speciefic field on the base application during run-time?
I'm still confused. Doesn't the Reflection API satisfy
Chiba, thanks for your quick reply. An example will clear it, if i have a program doing A+B and the result I get it online. I need to know how to change A and get different reslut. Do you have an example? or which API will do this for me?
If you want to intercept a field (during read or write access) you can easily use the JBoss AOP standalone framework based on Javassist.
If this is the real problem.
First, you can get a different result if you assign
a new value to A or B before evaluating A+B.
(Maybe this is not what you want. :-)
If you want to chage the behavior of field access
to A or B, yes, you can use JBoss AOP or directly
Javassist. If you use Javassist, please read Section
5.2 in the Javassist tutorial. javassist.expr.FieldAccess
should help you.
Great Help. thanks alot. i will try it and let you all know. thanks again