[Jsxe-cvs] SF.net SVN: jsxe: [1246] branches/jsxe2/src/net/sourceforge/jsxe/dom/ AdapterNode.java
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-09-07 00:10:49
|
Revision: 1246 http://svn.sourceforge.net/jsxe/?rev=1246&view=rev Author: ian_lewis Date: 2006-09-06 17:10:46 -0700 (Wed, 06 Sep 2006) Log Message: ----------- Added multi threading support to properties in AdapterNodes Modified Paths: -------------- branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java Modified: branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java =================================================================== --- branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java 2006-09-07 00:03:48 UTC (rev 1245) +++ branches/jsxe2/src/net/sourceforge/jsxe/dom/AdapterNode.java 2006-09-07 00:10:46 UTC (rev 1246) @@ -158,7 +158,9 @@ * @return the value of the property for the given key. */ public String getProperty(String key) { - return m_props.getProperty(key); + synchronized(propertyLock) { + return m_props.getProperty(key); + } }//}}} //{{{ getProperty() @@ -170,7 +172,9 @@ * @return the value of the property for the given key. */ public String getProperty(String key, String defaultValue) { - return m_props.getProperty(key, defaultValue); + synchronized(propertyLock) { + return m_props.getProperty(key, defaultValue); + } }//}}} //{{{ setProperty() @@ -1162,5 +1166,7 @@ private Node m_domNode; private ArrayList m_listeners = new ArrayList(); private Properties m_props = new Properties(); + + private Object propertyLock = new Object(); //}}} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |