|
From: Ampie B. <amp...@mw...> - 2002-10-22 04:18:00
|
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: hib...@li...
[mailto:hib...@li...]On Behalf Of
phr...@im...
Sent: 22 October 2002 00:55
To: Gavin King; hib...@li...
Subject: Re: [Hibernate] Ohhh this looks cool
hi,
On Tue, 22 Oct 2002 04:34:54 +1000, "Gavin King" <ga...@ap...>
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
--
phr...@im...
--
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
hib...@li...
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
|