try cglib, it is used in production without problems at his time.
It will generate proxy for class or interface, but you will need to use
factory(static method to create instance), if you need it for interfaces
only, use java.lang.reflect.Proxy to generate interface implementation.
Runtime code generation is limited to owerridable instance methods, but more
trivial to use.
Load time code transformation is more powerfull and "new" can be used create
instances, but you need to install specific class loader.
Build time postprocessing does almost the same as load time transformation,
but you need to maintain
generated grabage.
All solutins can replace callbacks ("Aspects") at runtime, It is possible to
implement this with tool like aspectj too.


> 'llo bcel users.
>
> in my last (and first post to the list), i asked for something to
> change the behavior (methods) of my classes at runtime. what i meant
> was exactly at run time but not at load time. i'm searching for a way
> to modify methods after they where loaded and used. when the methods
> are changed say for an interface, i want all the objects that
> implements it currently in use in the JVM to have their behavior
> modified.
>
> i tried jadvise-sequence (to see if that will work for me) but i have a
> problem with my classes configuring log4j in it so i can't use it.
>
> best regards.
>
> Rapha�l
>
> =====
> ------------------------------------
> | 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]>
>
>


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

Reply via email to