// 注册Spring MVC框架的BundleHandler
mvcFrameworkService
.registerBundleHandler(new BundleControllerHandler());
mvcFrameworkService.registerBundleHandler(new BundleFilterHandler());
mvcFrameworkService.registerBundleHandler(new BundleListenerHandler());
mvcFrameworkService.registerBundleHandler(new BundleThreadHandler());
// 添加到MVC框架中
for (Bundle bundle : this.getBundleContext().getBundles()) {
// 如果状态是已激活
if (bundle.getState() == Bundle.ACTIVE) {