Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: UDIG 0.7
-
Fix Version/s: UDIG 1.0.RC5
-
Component/s: application, catalog, metadata and search
-
Labels:None
Description
Found LayerResource (a proxy GeoResource that caches its value for later), it and I guess IGeoResource will need a dispose method.
Note LayerResource should listen to Catalog events to tell when its target has changed. It is also unclear who should take responsibility for telling Layer about its GeoResources changing.
I kind of expect that Layer should listen to catalog events, when in the Layer lifecycle should this occur.
I would rather avoid dispose methods if at all posible, as the catalog instances are really just proxies ... alternatively we can also include cleanup-code in finalize (of the catalog, service + georesource) and the catalog plugin destructor.