You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AXIS2-5788 Add non-touching overload of getServiceGroupContext
ConfigurationContext.getServiceGroupContext(id) always calls
ServiceGroupContext.touch() on a hit, which resets lastTouchedTime.
That is an "observer effect": any caller that wants to inspect a
context (e.g. a session-cleanup sweep evaluating staleness against
lastTouchedTime) mutates the very field it is trying to read and
ends up keeping the context alive forever.
Add an overload that takes an explicit touchServiceGroupContext flag:
ServiceGroupContext getServiceGroupContext(String id,
boolean touchServiceGroupContext)
The existing single-arg method is preserved and delegates with
touch=true, so legacy callers see no behaviour change. Callers that
want a read-only peek pass touch=false.
Also fix the stale Javadoc on getServiceGroupContextIDs() noted in
the same ticket (it claimed to return a hashmap; it returns a
String[]).
No functional change to the lookup itself beyond collapsing the
duplicated touch() call at the two hit sites into a single branch.
0 commit comments