/** * Create a new instance that will interact with a collection of Collectors * and will push the notifications sent by these Collectors to the specified * NotificationListener * * @param collectors * the Collector instance configuration details * @param listener * the NotificationListener to which the notifications will be * pushed * @return the created instance * @throws NullPointerException * if any of the parameters is {@code null} */ public static NotificationManager newInstance(final List<CollectorConfiguration> collectors, final NotificationListener listener) { checkNotNull(collectors,"Target cannot be null"); checkNotNull(listener,"Listener cannot be null"); return new NotificationManager(collectors,listener); }