Package org.apache.muse.management.common

Examples of org.apache.muse.management.common.Contribution


      super.initialize();
     
  }
 
  public void start() throws Exception {
    Contribution contribution = ((ManagementContributionProxy)this.getResource()).getContribution();
    if(contribution instanceof BundleContribution){
      ((BundleContribution)contribution).start();
    }
  }
View Full Code Here


      ((BundleContribution)contribution).start();
    }
  }
 
  public void stop() throws Exception {
    Contribution contribution = ((ManagementContributionProxy)this.getResource()).getContribution();
    if(contribution instanceof BundleContribution){
      ((BundleContribution)contribution).start();
    }
  }
View Full Code Here

      }
    }
  }
 
  private Contribution createBundleContribution(Bundle bundle){
    Contribution contribution = new BundleContribution(bundle);
    try {
      BundleUtils.registerContributionForBundle(bundle, contribution);
    } catch(Exception e){
      //TODO deal
    }
View Full Code Here

 


  public void bundleChanged(BundleEvent event) {
    Bundle bundle = event.getBundle();
    Contribution contribution = (Contribution)contributionToBundleMap.get(bundle);
    if(contribution instanceof BundleContribution == false) return;
    switch(event.getType()){
    case BundleEvent.INSTALLED:
      break;
    case BundleEvent.RESOLVED:
View Full Code Here

      }
    }
  }
 
  private Contribution createServiceContribution(ServiceReference service){
    Contribution contribution = new ServiceContribution(service);
    return contribution;
  }
View Full Code Here

TOP

Related Classes of org.apache.muse.management.common.Contribution

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.