BUG-7927: stop scanning bundles on framework stop 42/56242/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Apr 2017 17:33:36 +0000 (19:33 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 28 Apr 2017 11:34:01 +0000 (11:34 +0000)
commit262d0237b17d4596b167f49a644c1dbe8f7505bc
treee94d6b2b26b3c494f717ccfafb7125adb44a8767
parent98bc46847cda68e350c3d498e2bd718f7f82cafa
BUG-7927: stop scanning bundles on framework stop

Monitor framework bundle for STOPPING event and when it triggers
flag us as stopping: all bundles are about to shut down, so there
is no point in trying to update the schema context anymore.

Change-Id: I1a55169fce1705c19a139063cf632674fc256701
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2d05325b648b880088cea24ee1afd9edfc5a8979)
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/osgi/OsgiBundleScanningSchemaService.java