Hi!
The most current version of the castor documentation appears to allude to
the fact that it supports XML mapping/binding to java interfaces. I cannot
seem to properly implement this, I receive an error stating that the
Interface has no public constructor... well duh! Here are the xml files:
<mapping>
<class name="com.mySite.manager.ExtractorManager">
<map-to xml="managerProperties"/>
<field name="taskList" type="java.lang.String">
<bind-xml name="taskList" node="element"/>
</field>
<field name="taskVector" type="com.mySite.mananger.ITask"
collection="vector">
<bind-xml name="task" node="element"/>
</field>
</class>
<class name="com.mySite.manager.ITask">
<field name="taskName" type="java.lang.String">
<bind-xml name="name" node="attribute"/>
</field>
</class>
</mapping>
and
<managerProperties>
<taskList>com.mySite.manager.ImplementedTask(TestTask)</taskList>
<task name="testTask"
xsi:type="java:com.mySite.manager.ImplementedTask"/>
</managerProperties>
Any ideas as to why I cannot do this???
TIA!!!!
-Pete
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev