2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.groupbasedpolicy.forwarding;
13 import org.opendaylight.groupbasedpolicy.api.NetworkDomainAugmentor;
14 import org.opendaylight.groupbasedpolicy.api.NetworkDomainAugmentorRegistry;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
18 import com.google.common.collect.Sets;
20 public class NetworkDomainAugmentorRegistryImpl implements NetworkDomainAugmentorRegistry {
22 private final static Logger LOG = LoggerFactory.getLogger(NetworkDomainAugmentorRegistryImpl.class);
23 private final Set<NetworkDomainAugmentor> augmentors = Sets.newConcurrentHashSet();
26 public void register(NetworkDomainAugmentor netDomainAugmentor) {
27 if (augmentors.add(netDomainAugmentor)) {
28 LOG.info("Registered NetworkDomainAugmentor - {}", netDomainAugmentor.getClass().getSimpleName());
33 public void unregister(NetworkDomainAugmentor netDomainAugmentor) {
34 if (augmentors.remove(netDomainAugmentor)) {
35 LOG.info("Unegistered NetworkDomainAugmentor - {}", netDomainAugmentor.getClass().getSimpleName());
39 public Set<NetworkDomainAugmentor> getEndpointAugmentors() {