Package org.apache.muse.util.osgi

Examples of org.apache.muse.util.osgi.ResourceManagementImplementation


    try {
      context.addServiceListener(this,MANAGEMENT_IMPLEMENTATION_FILTER);
      ServiceReference[] refs = context.getServiceReferences("org.apache.muse.util.osgi.ResourceManagementImplementation", MANAGEMENT_IMPLEMENTATION_FILTER);
      if(refs != null){
        for(int i=0;i<refs.length;i++){
          ResourceManagementImplementation impl = (ResourceManagementImplementation)context.getService(refs[i]);
          if(impl != null) loadContributions(impl);
        }
      }
    } catch (InvalidSyntaxException e) {
      //This should never happen as the filter is not dynamic
View Full Code Here


   * ServiceListener method for dealing with ResourceManagementImplementation
   * service lifecycle events.
   */
  public synchronized void serviceChanged(ServiceEvent event) {
    ServiceReference ref = event.getServiceReference();
    ResourceManagementImplementation impl = (ResourceManagementImplementation)context.getService(ref);
    String name = impl.getImplementationName();
    switch (event.getType()) {
    case ServiceEvent.REGISTERED:
      if(contributorMap.get(name) == null){
        contributorMap.put(name, impl);
        serviceMap.put(ref, name);
View Full Code Here

    try {
      context.addServiceListener(this,MANAGEMENT_IMPLEMENTATION_FILTER);
      ServiceReference[] refs = context.getServiceReferences("org.apache.muse.util.osgi.ResourceManagementImplementation", MANAGEMENT_IMPLEMENTATION_FILTER);
      if(refs != null){
        for(int i=0;i<refs.length;i++){
          ResourceManagementImplementation impl = (ResourceManagementImplementation)context.getService(refs[i]);
          if(impl != null) loadContributions(impl);
        }
      }
    } catch (InvalidSyntaxException e) {
      //This should never happen as the filter is not dynamic
View Full Code Here

   * ServiceListener method for dealing with ResourceManagementImplementation
   * service lifecycle events.
   */
  public synchronized void serviceChanged(ServiceEvent event) {
    ServiceReference ref = event.getServiceReference();
    ResourceManagementImplementation impl = (ResourceManagementImplementation)context.getService(ref);
    String name = impl.getImplementationName();
    switch (event.getType()) {
    case ServiceEvent.REGISTERED:
      if(contributorMap.get(name) == null){
        contributorMap.put(name, impl);
        serviceMap.put(ref, name);
View Full Code Here

TOP

Related Classes of org.apache.muse.util.osgi.ResourceManagementImplementation

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.