Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / runtime / HierarchicalRuntimeBeanRegistration.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.runtime;
9
10 import javax.management.ObjectName;
11
12 public interface HierarchicalRuntimeBeanRegistration extends AutoCloseable {
13
14     ObjectName getObjectName();
15
16     HierarchicalRuntimeBeanRegistration register(String key, String value,
17             RuntimeBean mxBean);
18
19     /**
20      * Unregister beans that were registered using this registrator and its
21      * child registrators. This method is not idempotent, it is not allowed to
22      * use this instance or child registrators after they are closed.
23      */
24     @Override
25     void close();
26
27 }