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,
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(