From: Ben W. <bw...@us...> - 2004-03-21 18:59:16
|
User: bwang00 Date: 04/03/21 10:48:44 Modified: docs Changelog.txt FAQ.xml Log: Updated for release 1.0 Revision Changes Path 1.3 +5 -1 jboss-cache/docs/Changelog.txt Index: Changelog.txt =================================================================== RCS file: /cvsroot/jboss/jboss-cache/docs/Changelog.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Changelog.txt 18 Mar 2004 06:48:01 -0000 1.2 +++ Changelog.txt 21 Mar 2004 18:48:44 -0000 1.3 @@ -1,9 +1,13 @@ Features: - Release 1.0 * Eviction policy for both TreeCache and TreeCacheAop - * AOP object graph handling + * TreeCacheAop "object-oriented" features: inheritance, + aggregation, and object graph (in local and replication + mode) * Support JBossAop1.0 beta * support aopc, pre-compiling aop + * Support TreeCache as a JBoss MBean service (both jboss4.0 and 3.2) + * documentation updates - Release 1.0beta * Cache mode of LOCAL, REPL_ASYNC, and REPL_SYNC 1.6 +26 -0 jboss-cache/docs/FAQ.xml Index: FAQ.xml =================================================================== RCS file: /cvsroot/jboss/jboss-cache/docs/FAQ.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- FAQ.xml 19 Mar 2004 07:40:40 -0000 1.5 +++ FAQ.xml 21 Mar 2004 18:48:44 -0000 1.6 @@ -581,6 +581,32 @@ <literal>Serializable</literal> interface though.</para> </answer> </qandaentry> + + <qandaentry> + <question> + <para>How do I use <literal>List</literal>, <literal>Set</literal>, + and <literal>Map</literal> dynamic proxy?</para> + </question> + + <answer> + <para>TreeCacheAop supports classes extends from + <literal>List</literal>, <literal>Set</literal>, and + <literal>Map</literal> without users to declare it "advised". It is + done via a dynamic proxy. Here is a code snippet to use an + <literal>ArrayList</literal> class.</para> + + <programlisting>ArrayList list = new ArrayList(); +list.add("first"); + +cache.putObject("/list/test", list); +list.add("second"); // Won't work since AOP intercept the dynamic proxy not the original POJO. + +ArrayList myList = (List)cache.getObject("/list/test"); // we are getting a dynamic proxy instead +myList.add("second"); // it works now +myList.add("third"); +myList.remove("third");</programlisting> + </answer> + </qandaentry> </qandadiv> </qandaset> </article> \ No newline at end of file |