[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bcel-user
Subject:    Re: Re: Instrument a class and get new instance of it
From:       "Torsten Curdt" <tcurdt () apache ! org>
Date:       2006-07-14 7:06:31
Message-ID: 98e4f1cd0607140006t18a037fcx712acc4ef9dedbd1 () mail ! gmail ! com
[Download RAW message or body]

> You can turn an array of bytes into a Class using the method
> ClassLoader.defineClass. This method is protected, but you can call it
> by using reflection (locate the Method object for it, then call
> Method.invoke). Yes it's rather ugly but it works.

Well, or have your own classloader

http://jakarta.apache.org/commons/sandbox/javaflow/xref/org/apache/commons/javaflow/bytecode/BytecodeClassLoader.html


cheers
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic