manipulating classes during runtime

Discussion in 'Java' started by Timo Nentwig, Jul 14, 2003.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

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

    Timo
     
    Timo Nentwig, Jul 14, 2003
    #1
    1. Advertising

  2. Timo Nentwig () 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
     
    Robert Olofsson, Jul 14, 2003
    #2
    1. Advertising

  3. Timo Nentwig <> wrote in message news:<beurkd$9914q$-berlin.de>...
    > Hi!
    >
    > Similar to reflection is it possible to manipulate classes on runtime, e.g.
    > adding methods and fields? AOP?
    >
    > Timo


    Yes. See

    Byte Code Engineering Library http://jakarta.apache.org/bcel/
     
    Sandip Chitale, Jul 15, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Homer J. Simpson

    Manipulating style at runtime?

    Homer J. Simpson, Aug 9, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    457
    Homer J. Simpson
    Aug 10, 2007
  2. traveller
    Replies:
    0
    Views:
    1,195
    traveller
    Jan 8, 2008
  3. Dmitry Korolyov

    Datagrid not updated during delete, but updated during insert and update

    Dmitry Korolyov, Sep 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    416
    Dmitry Korolyov
    Sep 22, 2003
  4. KK

    manipulating datagrid at runtime

    KK, Jan 11, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    128
    Alvin Bruney
    Jan 11, 2004
  5. Peter Michaux

    Manipulating the DOM during page load.

    Peter Michaux, Dec 6, 2006, in forum: Javascript
    Replies:
    1
    Views:
    97
    naixn
    Dec 6, 2006
Loading...

Share This Page