Fix checkstyle simplify boolean expression config-api
[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 import org.opendaylight.controller.config.spi.Module;
12
13 /**
14  * Each {@link org.opendaylight.controller.config.spi.Module} that is committed
15  * will be wrapped into this interface.
16  */
17 public interface DynamicMBeanWithInstance extends DynamicMBean {
18
19     /**
20      * Get original module that is wrapped with this instance.
21      */
22     Module getModule();
23
24     /**
25      * Gets 'live object' associated with current config object. Useful when
26      * reconfiguring {@link org.opendaylight.controller.config.spi.Module}
27      * instances.
28      */
29     AutoCloseable getInstance();
30
31 }