BUG-7927: stop scanning bundles on framework stop 41/56241/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:33:52 +0000 (11:33 +0000)
commit2f6fd404f0d86fa91a5acf13c8d90d4aeb668a3e
tree031ecdf09b498d1ce940818062c0927c6e52fc44
parent956ed1b3c7cc4736f1b3a0a54ac4f72fed946026
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