Package org.osgi.framework

Examples of org.osgi.framework.Bundle.uninstall()


        }
        finally
        {
            if ( bundle2 != null )
            {
                bundle2.uninstall();
            }
        }
    }

View Full Code Here


                TestCase.assertEquals( "Expect a single update call", 2, tester2.numManagedServiceUpdatedCalls );

                TestCase.assertNull( "Expect Properties after Service Registration", tester.props );
                TestCase.assertEquals( "Expect a single update call", 1, tester.numManagedServiceUpdatedCalls );

                bundle2.uninstall();
                bundle2 = null;

                delay();

                /*
 
View Full Code Here

        }
        finally
        {
            if ( bundle2 != null )
            {
                bundle2.uninstall();
            }
        }
    }

}
View Full Code Here

        }
        finally
        {
            if ( bundle2 != null )
            {
                bundle2.uninstall();
            }
        }
    }

View Full Code Here

                TestCase.assertEquals( "Expect a single update call", 1, tester2.numManagedServiceFactoryUpdatedCalls );

                TestCase.assertTrue( "Expect Properties after Service Registration", tester.configs.isEmpty() );
                TestCase.assertEquals( "Expect a single update call", 0, tester.numManagedServiceFactoryUpdatedCalls );

                bundle2.uninstall();
                bundle2 = null;

                delay();

                /*
 
View Full Code Here

        }
        finally
        {
            if ( bundle2 != null )
            {
                bundle2.uninstall();
            }
        }
    }

}
View Full Code Here

        // ==> call back with null.
        TestCase.assertNull( tester2.props );
        TestCase.assertEquals( 2, tester2.numManagedServiceUpdatedCalls );

        // 7. uninstall Bundle A for cleanup.
        bundleA.uninstall();
        delay();

        // Test 2

        // 8. BundleA registers ManagedService with pid1.
View Full Code Here

    Bundle bundle = getBundle(args);

    if (bundle == m_context.getBundle()) {
      new SelfUninstallThread(bundle).start();
    } else {
      bundle.uninstall();
    }
  }

  private static final class SelfUninstallThread extends Thread {
    private final Bundle m_self;
View Full Code Here

      if ("uninstallPlugin".equals(mod)) {
        String pluginIdStr = request.getParameter("pluginId");
        Long pluginId = Long.valueOf(pluginIdStr);
        Bundle bundle = bundleContext.getBundle(pluginId);
        try {
          bundle.uninstall();
        } catch (Exception ex) {
          ex.printStackTrace();
          pushMessage(request, "卸载插件时异常," + ex);
          doGet(request, response);
          return;
View Full Code Here

        jarOut.close();
        out.close();

        if (existingBundle != null) {
            existingBundle.stop();
            existingBundle.uninstall();
        }

        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());

        Bundle bundle = bundleContext.installBundle("file://" + bundleName
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.