/** * TODO: Collector is not immutable, therefore the configuration could be * externally changed... */ private NotificationManager(final List<CollectorConfiguration> collectors, final NotificationListener listener) { this.id=UUID.randomUUID(); this.collectors=ImmutableList.copyOf(collectors); this.aggregator=CollectorAggregator.newInstance(managerName(this.id),listener); }