Add restart-dependents-on-update blueprint extension
[controller.git] / opendaylight / blueprint / src / main / java / org / opendaylight / controller / blueprint / BlueprintContainerRestartService.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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.blueprint;
9
10 import org.osgi.framework.Bundle;
11
12 /**
13  * Interface that restarts blueprint containers.
14  *
15  * @author Thomas Pantelis
16  */
17 public interface BlueprintContainerRestartService {
18
19     /**
20      * Restarts the blueprint container for the given bundle and all its dependent containers in an atomic
21      * and orderly manner. The dependent containers are identified by walking the OSGi service dependency
22      * hierarchies for the service(s) provided by the given bundle.
23      *
24      * @param bundle the bundle to restart
25      */
26     void restartContainerAndDependents(Bundle bundle);
27 }