public synchronized Counter findCounter(String counterName) { Counter result = counters.get(counterName); if (result == null) { String displayName = localize(counterName, counterName); result = new Counter(counterName, displayName); counters.put(counterName, result); } return result; }
protected CounterGroup(String name) { this.name = name; try { bundle = getResourceBundle(name); } catch (MissingResourceException neverMind) { } displayName = localize("CounterGroupName", name); }
protected CounterGroup(String name) { this.name = name; try { bundle = getResourceBundle(name); } catch (MissingResourceException neverMind) { } displayName = localize("CounterGroupName", name); }
public synchronized Counter findCounter(String counterName) { Counter result = counters.get(counterName); if (result == null) { String displayName = localize(counterName, counterName); result = new Counter(counterName, displayName); counters.put(counterName, result); } return result; }