ok, I see.
so in the example from TreeCacheAOP guide
Person joe = new Person();
joe.setName("Joe Black"); // This is base class attributes
ArrayList lang = new ArrayList();
lang.add("English");
lang.add("Mandarin");
joe.setLanguages(lang);
// This will map the languages List automatically and swap it out
with the proxy reference.
tree.putObject("/aop/student/joe", joe);
ArrayList lang = joe.getLanguages(); // Note that lang is a
proxy reference
lang.add("French"); // This will be intercepted by the cache
local to joe "lang" would not be in synch with the proxy
(local would have values: English, Mandaring and
proxy would have values: English, Mandaring, French)? (which might be
a little wacky)
but what about if "setLanguages" method was defined as "prepare"
for interception, so if I called something like
joe.setLanguages("Spanish"),
would it intercept and update the proxy copy as well and not the local?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907672#3907672
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907672
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user