Convert bgp-rib-spi to OSGi DS
[bgpcep.git] / bgp / extensions / labeled-unicast / src / main / java / org / opendaylight / protocol / bgp / labeled / unicast / LabeledUnicastIpv6RIBSupport.java
index 52056246d115ee5048413263ddfb13f0a7d776ff..97b2fa44e7be280b1c2e17174eda95e0c1be5048 100644 (file)
@@ -32,9 +32,8 @@ import org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode;
 final class LabeledUnicastIpv6RIBSupport
         extends AbstractLabeledUnicastRIBSupport<LabeledUnicastIpv6RoutesCase, LabeledUnicastIpv6Routes> {
     private static final LabeledUnicastIpv6Routes EMPTY_CONTAINER = new LabeledUnicastIpv6RoutesBuilder().build();
-    private static LabeledUnicastIpv6RIBSupport SINGLETON;
 
-    private LabeledUnicastIpv6RIBSupport(final BindingNormalizedNodeSerializer mappingService) {
+    LabeledUnicastIpv6RIBSupport(final BindingNormalizedNodeSerializer mappingService) {
         super(mappingService,
                 LabeledUnicastIpv6RoutesCase.class,
                 LabeledUnicastIpv6Routes.class,
@@ -42,13 +41,6 @@ final class LabeledUnicastIpv6RIBSupport
                 DestinationIpv6LabeledUnicast.QNAME);
     }
 
-    static synchronized LabeledUnicastIpv6RIBSupport getInstance(final BindingNormalizedNodeSerializer mappingService) {
-        if (SINGLETON == null) {
-            SINGLETON = new LabeledUnicastIpv6RIBSupport(mappingService);
-        }
-        return SINGLETON;
-    }
-
     @Override
     protected DestinationType buildDestination(final Collection<MapEntryNode> routes) {
         return new DestinationIpv6LabeledUnicastCaseBuilder().setDestinationIpv6LabeledUnicast(