jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • uDIG
  • UDIG-161

IGeoResource.dispose() and Layer tracking

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
Hide
Permalink
David Zwiers added a comment - 05/Jan/05 1:37 PM
Hmm, we might just want a dispose method for the ICatalog ... as the IResource can very well be mapped to 2 Layer objects. We can use the event model provided by the catalog to inform the layer when the catalog, service or georesource has been modified (ie, deleted/closed in this case).

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.
Show
David Zwiers added a comment - 05/Jan/05 1:37 PM Hmm, we might just want a dispose method for the ICatalog ... as the IResource can very well be mapped to 2 Layer objects. We can use the event model provided by the catalog to inform the layer when the catalog, service or georesource has been modified (ie, deleted/closed in this case). 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.
Hide
Permalink
Jody Garnett added a comment - 07/Jan/05 3:21 PM
finalize never really works, I agree that Catalog is the active party responsible for "all" resources. So we can have it hold the dispose method, basically we need someone to tell the Datastores to close.

I just wanted the *who* figured out.
Show
Jody Garnett added a comment - 07/Jan/05 3:21 PM finalize never really works, I agree that Catalog is the active party responsible for "all" resources. So we can have it hold the dispose method, basically we need someone to tell the Datastores to close. I just wanted the *who* figured out.
Hide
Permalink
Jody Garnett added a comment - 14/Apr/05 7:11 PM
GeoResource represents a lightweight handle that may be duplicated, it is not the proper object to hold onto resources (and thus require a dispose method).

The catalog holds onto resources (and gives out handles that may be redeemed later)
Show
Jody Garnett added a comment - 14/Apr/05 7:11 PM GeoResource represents a lightweight handle that may be duplicated, it is not the proper object to hold onto resources (and thus require a dispose method). The catalog holds onto resources (and gives out handles that may be redeemed later)

People

  • Assignee:
    Jesse Eichar
    Reporter:
    Jody Garnett
Vote (0)
Watch (0)

Dates

  • Created:
    04/Jan/05 11:10 PM
    Updated:
    06/Mar/09 6:09 AM
    Resolved:
    14/Apr/05 7:11 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.