Thanks for the answer. The factory was disabled but now I need to access th=
e=20
callback and the only clean (not using reflection) way is the factory so=20
I've put it back.
And yes, I think I'll intercept the toString to get the behavior I want.
-
Henri
On 8/17/05, Chris Nokleberg <chris@...> wrote:
>=20
> On Tue, Aug 16, 2005 at 11:33:35PM +0200, Henri Tremblay wrote:
> > The toString() is generated by easymock. And having the Factory makes=
=20
> the
> > enhanced class implementing an interface, which changes the toString
> > behavior... And so I'm not having what I want... but it has nothing to=
=20
> do
> > with cglib...
>=20
> Well, you can disable the factory interface if you really want to
> (setUseFactory in Enhancer). Or as part of your proxy you can override
> the toString method to "restore" the standard easymock toString output.
>=20
> Chris
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q=
A
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> cglib-devel mailing list
> cglib-devel@...
> https://lists.sourceforge.net/lists/listinfo/cglib-devel
>
|