Hi,
I am working on a DataSource implementation. I want to get some customized
properties when the *DataSource.init* method is called. I tried to add the
attributes in the *dataSource* element, but I cannot read it from the
*initProps* object. Either I added the attribute in a wrong element, or I
read the property using a wrong way.
<dataConfig>
<dataSource type="com.my.company.datasource"
my="value" />
<document>
<entity name="bankdata" query="test">
<field column="id" name="id" />
<field column="col1" name="mycol1" />
...
</entity>
</document>
</dataConfig>
But initProps.getProperty("my") == null.
--
Regards,
David Shen
http://about.me/davidshen
https://twitter.com/#!/davidshen84