Thanks Justin, Do you have any example of code using this listenerManager ?
In the old API, to fire a remove event for instance, you just needed to pass the removed feature as an argument. To fire a change event, you had to pass the old and the new feature. That was straightforward and easy to understand. Now, I need to pass the feature type, the transaction (what is it ? I don't use transactions in my feature writer...), the referenced envelope (is this the envelope containing the feature or does it correspond to the bounds of the whole datastore ?) and a commit boolean (the javadoc says: true for commit, false to rolback... what is this ?). Where is my feature ? Is it embedded in the transaction ? How do I build one ? Thanks Le 3 mars 09 à 04:38, Justin Deoliveira a écrit : > Hi Benoît, > > Yes, that tutorial seems quite out of date. Looking at the code it > seems like what you want to do (if your datastore extends from > AbstractDataStore) is to use the listenerManager member of > AbstractDataStore to add/remove listeners, and to fire events. > > -Justin > > Benoît Thiébault wrote: >> Hi everyone, >> I'm currently creating a writeable datastore following this >> tutorial : >> http://docs.codehaus.org/display/GEOTDOC/3+Making+PropertyDataStore+Writable >> It seems however a little outdated. >> When the feature has changed, in the feature writer, I am supposed >> to call a datastore method : >> datastore.fireChanged( original, live ); >> But this method does not exist in the AbstractDataStore class. How >> should I do to notify the featureSource created from the datastore >> that my data has changed ? >> Thanks >> Benoît >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > -- > Justin Deoliveira > OpenGeo - http://opengeo.org > Enterprise support for open source geospatial. > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
