*/publicstaticbooleanremoveServiceListener(BundleContext context, ServiceListener listener){if(context ==null|| listener ==null)returnfalse;try{ context.removeServiceListener(listener);returntrue; }catch(IllegalStateException e) {// Bundle context is no longer valid}returnfalse; } 开发者ID:eclipse, ...
*/publicvoiddispatchEvent(ObjectoriginalListener,Objectl,intaction,Objectobject){// save the bundle ref to a local variable// to avoid interference from another thread closing this contextEquinoxBundletmpBundle=bundle;ObjectpreviousTCCL=setContextFinder();try{if(isValid())/* if context still valid ...