Remove hand-written ServiceLoader services
[bgpcep.git] / bgp / extensions / linkstate / src / main / java / org / opendaylight / protocol / bgp / linkstate / impl / TableTypeActivator.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.bgp.linkstate.impl;
9
10 import java.util.List;
11 import org.kohsuke.MetaInfServices;
12 import org.opendaylight.protocol.bgp.openconfig.spi.AbstractBGPTableTypeRegistryProviderActivator;
13 import org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProvider;
14 import org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProviderActivator;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.LinkstateAddressFamily;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.LinkstateSubsequentAddressFamily;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.LINKSTATE;
18 import org.opendaylight.yangtools.concepts.AbstractRegistration;
19
20 @MetaInfServices(value = BGPTableTypeRegistryProviderActivator.class)
21 public final class TableTypeActivator extends AbstractBGPTableTypeRegistryProviderActivator {
22     @Override
23     protected List<AbstractRegistration> startBGPTableTypeRegistryProviderImpl(
24             final BGPTableTypeRegistryProvider provider) {
25         return List.of(provider.registerBGPTableType(LinkstateAddressFamily.class,
26                 LinkstateSubsequentAddressFamily.class, LINKSTATE.class));
27     }
28 }