hi,

Cglib is brilliant for simply wrapping method calls. As I understand its
main feature is generating classes dynamically  by merging two classes that
were not in any way related at compile time. The generated class looks like
a subclass of the original, so you don't need 1000 interfaces as with
proxies.

If access to the internal state of an object always goes through its
accessors, this tool could be ideal for lazy fetching of state just before a
getter or setter method call, maybe through fetch groups.

I think it is a good idea Gavin. In theory, it should be faster than
proxies, but one might just want to test that theory.

Ampie

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 22 October 2002 00:55
To: Gavin King; [EMAIL PROTECTED]
Subject: Re: [Hibernate] Ohhh this looks cool


hi,

On Tue, 22 Oct 2002 04:34:54 +1000, "Gavin King" <[EMAIL PROTECTED]>
said:
> Can we use this to do lazy initialization of objects without the need for
> proxy interfaces?

wouldn't you have to do this at class loading time then? that is: how
would you make your generated look like the original one? with interfaces
it's doable at runtime, as long as the client refers to the generated
class through the interface...

    viktor
--

  [EMAIL PROTECTED]

--
http://fastmail.fm - Access your email with Outlook or over the web


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of  Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of  Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to