de.is24.util.monitoring
Class Monitors<T extends Reportable>
java.lang.Object
de.is24.util.monitoring.Monitors<T>
- Type Parameters:
T - the type of monitor beans
class Monitors<T extends Reportable>
- extends Object
Wrapper class for monitors. Simplifies boilerplate administration.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
monitors
private final Map<String,T extends Reportable> monitors
reportableObservers
private final List<ReportableObserver> reportableObservers
Monitors
public Monitors(List<ReportableObserver> reportableObservers)
get
public T get(String key,
Monitors.Factory<T> factory)
get
public T get(String key)
put
public T put(String key,
T reportable)
notifyReportableObservers
private void notifyReportableObservers(Reportable reportable)
accept
public void accept(ReportVisitor reportVisitor)
getMonitors
public Collection<T> getMonitors()
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.