thanks for the answer.
let me precise my needs :

i have two interfaces A and B. B extends A. A has a method m():int.
i have three class C, D and E. C implements A, D implements B and E
extends D. so C,D and E have the method m():int. E override m():int.

at runtime i have a class M which modifies the implementation of all
the classes under the interface B so that m():int will return the
previous m()+1. that change has to be made for D and E. that change may
also be unmake at runtime.

even if i later create a class F that extends E, i want that the code
modifying the classes un B touch F. but i don't want to modify my class
M.

how can i do this. is bcel or any aspect framework sufficiant ?

in advance thanks.

Rapha�l Pi�roni

ps : if my needs may help the community to improve the java at jakarta,
i'll be happy.


 --- Juozas Baliuka <[EMAIL PROTECTED]> a �crit�: > 
> It was some utility in sandbox, but I moved it to SF
> see http://cglib.sourceforge.net it generates code at runtime (it is
> trivial
> library)
> http://jac.aopsys.com/ transforms code at loadtime (AOP framework).
> All of ways have limitations, try http://jakarta.apache.org/bcel if
> you need
> something special.
> 
> 

=====
------------------------------------
| Rapha�l Pi�roni                  |
| 33+ 223 351 354                  |
| mailto:[EMAIL PROTECTED]        |
| http://www.dexem.com             |
| mailing:[EMAIL PROTECTED] |
------------------------------------

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to