osgi-扩展bluedavy提供的“简单方式下的留言板”遇到的问题
在BulletinListModule中仿照右侧左上角的扩展点增加一个左侧扩展点,用于显示“查询”字样根据上述扩展点,在新的bundle中实现扩展通过DS描述component,在本bundle中,有两个component,一个为进入查询页面进入的action,另一个是查询功能本身。
Bundle[] bs = this.context.getBundles();Bundle b = null;for (int i = 0; i < bs.length; i++) {System.out.println(bs[i].getBundleContext());if(bs[i].getSymbolicName().equals("QueryBundleModule")){b = bs[i];break;}}