T - the type of monitor beansclass Monitors<T extends Reportable> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Monitors.Factory<T> |
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentHashMap<String,T> |
monitors |
private List<ReportableObserver> |
reportableObservers |
| Constructor and Description |
|---|
Monitors(List<ReportableObserver> reportableObservers) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ReportVisitor reportVisitor) |
T |
get(String key) |
T |
get(String key,
Monitors.Factory<T> factory) |
Collection<T> |
getMonitors() |
private void |
notifyReportableObservers(Reportable reportable) |
T |
put(String key,
T reportable) |
void |
putIfAbsent(String key,
T reportable) |
private final ConcurrentHashMap<String,T extends Reportable> monitors
private final List<ReportableObserver> reportableObservers
public Monitors(List<ReportableObserver> reportableObservers)
public T get(String key, Monitors.Factory<T> factory)
private void notifyReportableObservers(Reportable reportable)
public void accept(ReportVisitor reportVisitor)
public Collection<T> getMonitors()
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.