• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #116 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

OmeroContext needs refreshAll method

Reported by: jmoore Owned by: jmoore
Priority: trivial Milestone: 3.0-M2
Component: API Version: 3.0-M1
Keywords: spring,iteration3 Cc:

Description

Refreshing the static instances available from OmeroContext#getXYZInstance() methods is not immediately clear. Calling ConfigurableApplicationContext#refresh?() refreshes only the last context in the hierarchy. #refreshAll() should walk the graph and refresh the most distant ancestor first.

Change History

Changed 2 years ago by jmoore

  • keywords spring,iteration3 added; spring removed
  • status changed from new to assigned

Changed 2 years ago by jmoore

  • status changed from assigned to closed
  • resolution set to fixed

refreshAll implemented in r709.

It walks the context parentage hierarchy and calls refresh() on the deepest (most ancestral) contex first. The walk stops at the first non-ConfigurableApplicationContext-typed context found.

Tests for this and various other OmeroContext aspects were also added to /common.

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/