-
1. Re: Changing attribute of application
chiba Nov 5, 2003 9:40 PM (in response to abdul)An attribute of the application?
Can you tell me what it is? -
2. Re: Changing attribute of application
abdul Nov 26, 2003 4:02 AM (in response to abdul)Chiba, I mean can i change and view a speciefic field on the base application during run-time?
-
3. Re: Changing attribute of application
chiba Nov 26, 2003 8:39 PM (in response to abdul)I'm still confused. Doesn't the Reflection API satisfy
your requirement? -
4. Re: Changing attribute of application
abdul Nov 27, 2003 2:28 AM (in response to abdul)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?
cheers -
5. Re: Changing attribute of application
anonym124 Nov 29, 2003 4:42 AM (in response to abdul)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.
Hi.
Paolo -
6. 3808888
chiba Nov 30, 2003 8:54 AM (in response to abdul)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. -
7. Re: Changing attribute of application
abdul Jan 5, 2004 9:08 AM (in response to abdul)Great Help. thanks alot. i will try it and let you all know. thanks again