After looking at the javassist docs
> last night is something like using casting to dynamically add
> interceptors. This might be bad, haven't thought through all the
> implications ... But, imagine:
Where is it. I cant find any documents regarding casting and I feel that is
impossible because the class is loaded.
This prevents our basic discussion of preventing user from knowing the
point cuts.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Jeff
> Haynie
> Sent: Thursday, March 27, 2003 8:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-dev] AOP versioned ACID objects 1st iteration
>
>
>
> >I'm not sure...The problem with Versioning and Remoting is
> that a proxy
> object is required. You have to return a different object
> than the one
> actually constructed.
> >You getting me? I'm not sure if this can be done within bytecode
> manipulation. I'll have to ask the Javassist guys.
>
> Why? Basically in rmeoting, you would just dispatch each method
> invocation across the wire and the local object would just serve as a
> phantom object and not actually contain any state, etc. Why
> does it has
> to be a real proxy...? Maybe I'm not following.
>
>
> That way, I could new an object, which is actually a local
> representation of a remoted object on another machine. I
> could also add
> a clustered intercetor which might then load balance
> invocations across
> to different real remote objects. I think this is possible. Right?
>
> Another thing to think about ... After looking at the javassist docs
> last night is something like using casting to dynamically add
> interceptors. This might be bad, haven't thought through all the
> implications ... But, imagine:
>
> Foo foo = new Foo (); // local object
>
> ((Transactable)foo).beginTx();
> Foo.bar();
> ((Transactable)foo).commitTx();
>
> What if the mere casting of an object would allow you to dynamically
> attach an interceptor to the object before the invocation? This might
> be fairly powerful too. Looking at the javassist docs, it
> looks like you
> can get called on a Cast and InstanceOf call to an object. Maybe I'm
> being too whacky here ... Not sure. Something to ponder.
>
> Jeff
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development