Split out NetconfMapperAggregator
[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.impl.osgi.AggregatedNetconfOperationServiceFactory;
11 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
12 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener;
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 = "type=mapper-aggregator-registry", immediate = true)
19 public final class NetconfMapperAggregator extends AggregatedNetconfOperationServiceFactory {
20     @Activate
21     public NetconfMapperAggregator() {
22         super();
23     }
24
25     @Override
26     @Deactivate
27     public void close() {
28         super.close();
29     }
30 }