manipulating classes during runtime

T

Timo Nentwig

Hi!

Similar to reflection is it possible to manipulate classes on runtime, e.g.
adding methods and fields? AOP?

Timo
 
R

Robert Olofsson

Timo Nentwig ([email protected]) wrote:
: Similar to reflection is it possible to manipulate classes on runtime, e.g.
: adding methods and fields? AOP?

No.

It is however possible to create _new_ classes at runtime. Using a
specialized classloader you can perhaps get most of what you want.
Google to find helpful projects.

You also have the method Proxy class (java/1.3+) that can be used for
some interesting things.

If you care to tell us more about what you try to do we may be able
to provide more information.

/robo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top