donaldp 2002/07/04 16:55:16
Modified: container/src/java/org/apache/myrmidon/components/property
XPathPropertyResolver.java
Log:
Add some javadoc
Revision Changes Path
1.5 +4 -1 jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/property/XPathPropertyResolver.java
Index: XPathPropertyResolver.java
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/property/XPathPropertyResolver.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XPathPropertyResolver.java 4 Jul 2002 23:53:54 -0000 1.4
+++ XPathPropertyResolver.java 4 Jul 2002 23:55:16 -0000 1.5
@@ -41,6 +41,9 @@
public void initialize()
throws Exception
{
+ //We need to explicitly register this class
+ //or else JXPath will not be able to understand that
+ //instances are a Map and not a bean.
final Class clazz = Collections.unmodifiableMap( new HashMap() ).getClass();
JXPathIntrospector.registerDynamicClass( clazz, MapDynamicPropertyHandler.class
);
}
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|