Ensure CSS modules are closed before blueprint containers on shutdown
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / ConfigSystemService.java
diff --git a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ConfigSystemService.java b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ConfigSystemService.java
new file mode 100644 (file)
index 0000000..9a1470a
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2016 Brocade Communications Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.config.api;
+
+/**
+ * Service interface for the config system.
+ *
+ * @author Thomas Pantelis
+ */
+public interface ConfigSystemService {
+    /**
+     * This method closes all the config system modules. This method should only be called on process
+     * shutdown and is provided as a hook to control the shutdown sequence.
+     */
+    void closeAllConfigModules();
+}