activate メソッドで特定の例外がスローされた場合、現在のバンドルを非アクティブ化する方法は?
public void activate(BundleContext bundleContext) {
try{
if(something) throw new Exception();
} catch(Exception e) {
//deactivate bundle...
}
}