コード例 #1
0
 void stopWorker0() throws BundleException {
   BundleContextImpl current = getBundleContextImpl();
   if (current != null) {
     try {
       current.stop();
     } finally {
       current.close();
     }
     synchronized (EquinoxBundle.this.monitor) {
       context = null;
     }
   }
 }
コード例 #2
0
 void startWorker0() throws BundleException {
   BundleContextImpl current = createBundleContext(false);
   if (current == null) {
     throw new BundleException("Unable to create bundle context!"); // $NON-NLS-1$
   }
   try {
     current.start();
   } catch (BundleException e) {
     current.close();
     synchronized (EquinoxBundle.this.monitor) {
       context = null;
     }
     throw e;
   }
 }