Jody Garnett ha scritto: > This came up a while ago; and I am hitting it again as I go through > the steps of cleaning up a map layer. > > I would like to add the following methods: - > FeatureSource.dispose(); > clean up after a feature source - mostly cleans up any outstanding > listeners I guess
Ouch, feature source is normally stateless past listeners... is there a way to avoid yet another resource disposal method? Swing has a similar issue with listeners and afaik they use weak references to solve the problem: http://www.google.it/search?q=swing+listeners+weak Not sure if they are applicable straigth to our case, but worth looking into > - FeatureSource.setTransaction( Transaction ) - > just because we are using readonly access does not mean we should be > prevented from drawing what is going on during a transaction +1 Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
