User: juhalindfors
Date: 02/03/20 11:09:14
Modified: src/main/org/jboss/mx/metadata Tag: BranchMX_1_0
XMBeanMetaData.java
Log:
slight semantic change to xmbean.dtd parsing: if neither setMethod or getMethod
mapping has been set, the attribute caching will be enabled automatically
(currencyTimeLimit = -1).
explicit setting of currencyTimeLimit will override this behavior
Revision Changes Path
No revision
No revision
1.1.2.1 +4 -0 jmx/src/main/org/jboss/mx/metadata/XMBeanMetaData.java
Index: XMBeanMetaData.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/metadata/XMBeanMetaData.java,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- XMBeanMetaData.java 8 Mar 2002 11:53:00 -0000 1.1
+++ XMBeanMetaData.java 20 Mar 2002 19:09:13 -0000 1.1.2.1
@@ -288,6 +288,10 @@
if (currTimeLimit != null)
descr.setField(CURRENCY_TIME_LIMIT, currTimeLimit.getValue());
+ // if no method mapping, enable caching automatically
+ if (setMethod == null && getMethod == null && currTimeLimit == null)
+ descr.setField(CURRENCY_TIME_LIMIT, "-1");
+
// defaults read-write
boolean isReadable = true;
boolean isWritable = true;
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development