BUG 6396 l2-l3-domain-extension migration to blueprint
[groupbasedpolicy.git] / domain-extensions / l2-l3 / src / main / java / org / opendaylight / controller / config / yang / config / domain_extension / l2_l3 / impl / L2L3DomainExtensionInstance.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
9 package org.opendaylight.controller.config.yang.config.domain_extension.l2_l3.impl;
10
11 import org.opendaylight.groupbasedpolicy.api.DomainSpecificRegistry;
12 import org.opendaylight.groupbasedpolicy.domain_extension.l2_l3.L2L3NetworkDomainAugmentor;
13
14 public class L2L3DomainExtensionInstance implements AutoCloseable {
15
16     private L2L3NetworkDomainAugmentor l2l3NetworkDomainAugmentor;
17
18     public L2L3DomainExtensionInstance (DomainSpecificRegistry domainSpecificRegistry) {
19          l2l3NetworkDomainAugmentor = new L2L3NetworkDomainAugmentor(domainSpecificRegistry.getNetworkDomainAugmentorRegistry());
20     }
21
22     @Override
23     public void close() throws Exception {
24         l2l3NetworkDomainAugmentor.close();
25     }
26 }