Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #116 (closed)

Opened 18 years ago

Closed 18 years ago

OmeroContext needs refreshAll method

Reported by: jamoore Owned by: jamoore
Priority: trivial Cc:
Sprint: n.a.
Total Remaining Time: n.a.

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 (2)

comment:1 Changed 18 years ago by jmoore

  • Keywords changed from spring to spring,iteration3
  • Status changed from new to assigned

comment:2 Changed 18 years ago by jmoore

  • Resolution set to fixed
  • Status changed from assigned to closed

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. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63012 sec.)

We're Hiring!