Integrate netconf-mapping-api into netconf-server
[netconf.git] / netconf / mdsal-netconf-impl / src / main / java / org / opendaylight / netconf / impl / mdsal / NetconfMapperAggregator.java
1 /*
2  * Copyright (c) 2023 PANTHEON.tech, s.r.o. 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.netconf.impl.mdsal;
9
10 import org.opendaylight.netconf.server.api.operations.NetconfOperationServiceFactory;
11 import org.opendaylight.netconf.server.api.operations.NetconfOperationServiceFactoryListener;
12 import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
13 import org.osgi.service.component.annotations.Activate;
14 import org.osgi.service.component.annotations.Component;
15 import org.osgi.service.component.annotations.Deactivate;
16
17 @Component(service = { NetconfOperationServiceFactory.class, NetconfOperationServiceFactoryListener.class },
18            property = NetconfMapperAggregator.OSGI_TYPE, immediate = true)
19 public final class NetconfMapperAggregator extends AggregatedNetconfOperationServiceFactory {
20     static final String OSGI_TYPE = "type=mapper-aggregator-registry";
21
22     @Activate
23     public NetconfMapperAggregator() {
24         super();
25     }
26
27     @Override
28     @Deactivate
29     public void close() {
30         super.close();
31     }
32 }