Peter Donald wrote:
Hi,
Could someone look at this and apply the changes?
All the BCEL stuff looks complex to say the least, but code wise it seems ok.
Just thought I should pop in to say that if you end up using CGLIB for anything, there is probably an easier way to make wrapper objects.
The Delegator class is normally used to combine multiple objects (interface implementation or beans) into a single object. The generated methods are just stubs that call the underlying objects. But if you have only one object, the resulting generated class acts just like a wrapper.
This is the API method you'd want to use:
Delegator.create(Class[] interfaces, Object[] delegates,
ClassLoader loader)See: http://cglib.sourceforge.net/apidocs/net/sf/cglib/Delegator.html
Note that this is totally different from the MethodDelegate class, which is based on the Avalon delegate stuff. The names are a bit unfortunate but Delegator was written first.
-Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
