/**
* NetconfOperationService aggregator. Makes a collection of operation services accessible as one.
*/
-public class AggregatedNetconfOperationServiceFactory
+public final class AggregatedNetconfOperationServiceFactory
implements NetconfOperationServiceFactory, NetconfOperationServiceFactoryListener, AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(AggregatedNetconfOperationServiceFactory.class);
}
@Override
- public synchronized void onAddNetconfOperationServiceFactory(NetconfOperationServiceFactory service) {
+ public synchronized void onAddNetconfOperationServiceFactory(final NetconfOperationServiceFactory service) {
factories.add(service);
for (final CapabilityListener listener : listeners) {
@SuppressWarnings("checkstyle:IllegalCatch")
@Override
- public synchronized void onRemoveNetconfOperationServiceFactory(NetconfOperationServiceFactory service) {
+ public synchronized void onRemoveNetconfOperationServiceFactory(final NetconfOperationServiceFactory service) {
factories.remove(service);
for (final AutoCloseable autoCloseable : registrations.get(service)) {
for (final NetconfOperationServiceFactory factory : factories) {
b.add(factory.createService(netconfSessionIdForReporting));
}
- this.services = b.build();
+ services = b.build();
}
@Override