Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / DynamicMBeanWithInstance.java
1 /*
2  * Copyright (c) 2013 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.controller.config.api;
9
10 import javax.management.DynamicMBean;
11
12 import org.opendaylight.controller.config.spi.Module;
13
14 /**
15  * Each {@link org.opendaylight.controller.config.spi.Module} that is committed
16  * will be wrapped into this interface.
17  */
18 public interface DynamicMBeanWithInstance extends DynamicMBean {
19
20     /**
21      * Get original module that is wrapped with this instance.
22      */
23     Module getModule();
24
25     /**
26      * Gets 'live object' associated with current config object. Useful when
27      * reconfiguring {@link org.opendaylight.controller.config.spi.Module}
28      * instances.
29      */
30     AutoCloseable getInstance();
31
32 }