Package org.apache.aries.application.management.spi.update

Examples of org.apache.aries.application.management.spi.update.UpdateStrategy$UpdateInfo


    assertTrue("We bounced the app where the update was supposed to do an update in place", oldCtx == newCtx);
  }
 
  private void installMockUpdateStrategy()
  {
    bundleContext.registerService(UpdateStrategy.class.getName(), new UpdateStrategy() {

      public boolean allowsUpdate(DeploymentMetadata newMetadata, DeploymentMetadata oldMetadata) {
        return true;
      }
View Full Code Here


  public void updateBundles(final DeploymentMetadata newMetadata,
      final DeploymentMetadata oldMetadata, final AriesApplication app,
      final BundleLocator locator, final Set<Bundle> bundles, final boolean startBundles)
      throws UpdateException
  {
    UpdateStrategy strategy = null;

    for (UpdateStrategy us : _updateStrategies) {
      if (us.allowsUpdate(newMetadata, oldMetadata)) {
        strategy = us;
        break;
      }
    }

    if (strategy == null)
      throw new IllegalArgumentException(
          "No UpdateStrategy supports the supplied DeploymentMetadata changes.");

    synchronized (BundleFrameworkManager.SHARED_FRAMEWORK_LOCK) {
      final BundleFramework appFwk = _frameworksByAppScope.get(app.getApplicationMetadata().getApplicationScope());

      strategy.update(new UpdateStrategy.UpdateInfo() {

        public void register(Bundle bundle)
        {
          bundles.add(bundle);
        }
View Full Code Here

  public void updateBundles(final DeploymentMetadata newMetadata,
      final DeploymentMetadata oldMetadata, final AriesApplication app,
      final BundleLocator locator, final Set<Bundle> bundles, final boolean startBundles)
      throws UpdateException
  {
    UpdateStrategy strategy = null;

    for (UpdateStrategy us : _updateStrategies) {
      if (us.allowsUpdate(newMetadata, oldMetadata)) {
        strategy = us;
        break;
      }
    }

    if (strategy == null)
      throw new IllegalArgumentException(
          "No UpdateStrategy supports the supplied DeploymentMetadata changes.");

    synchronized (BundleFrameworkManager.SHARED_FRAMEWORK_LOCK) {
      final BundleFramework appFwk = _frameworksByAppScope.get(app.getApplicationMetadata().getApplicationScope());

      strategy.update(new UpdateStrategy.UpdateInfo() {

        public void register(Bundle bundle)
        {
          bundles.add(bundle);
        }
View Full Code Here

    assertTrue("We bounced the app where the update was supposed to do an update in place", oldCtx == newCtx);
  }
 
  private void installMockUpdateStrategy()
  {
    bundleContext.registerService(UpdateStrategy.class.getName(), new UpdateStrategy() {

      public boolean allowsUpdate(DeploymentMetadata newMetadata, DeploymentMetadata oldMetadata) {
        return true;
      }
View Full Code Here

TOP

Related Classes of org.apache.aries.application.management.spi.update.UpdateStrategy$UpdateInfo

Copyright © 2018 www.massapicom. 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.