Package org.impalaframework.service.registry

Examples of org.impalaframework.service.registry.ServiceRegistryReference


      handleEventRemoved(event);
    }
  }

  private void handleEventRemoved(ServiceRegistryEvent event) {
    ServiceRegistryReference ref = event.getServiceReference();
    if (externalContributions.containsValue(ref.getBean())) {
     
      K contributionKeyName = filter.getContributionKeyName(ref);
      V removed = externalContributions.remove(contributionKeyName);
     
      if (logger.isDebugEnabled()) {
View Full Code Here


      }
    }
  }

  private void handleEventAdded(ServiceRegistryEvent event) {
    ServiceRegistryReference ref = event.getServiceReference();
    addService(ref);
  }
View Full Code Here

     
      Thread currentThread = Thread.currentThread();
      ClassLoader existingClassLoader = currentThread.getContextClassLoader();
      try {
        if (setContextClassLoader) {
          ServiceRegistryReference serviceReference = targetSource.getServiceRegistryReference();
          //this will only not be null if the service is removed directly after the hasTargetSource() call
          if (serviceReference != null) {
            currentThread.setContextClassLoader(serviceReference.getBeanClassLoader());
          }
        }
        return invocation.proceed();
       
      } finally {
View Full Code Here

  }
 
  /* ******************* Private and package method ******************** */
 
  private void handleEventRemoved(ServiceRegistryEvent event) {
    ServiceRegistryReference ref = event.getServiceReference();
    if (externalContributions.containsValue(ref.getBean())) {
     
      K contributionKeyName = filter.getContributionKeyName(ref);
      V removed = externalContributions.remove(contributionKeyName);
     
      if (logger.isDebugEnabled()) {
View Full Code Here

      }
    }
  }

  private void handleEventAdded(ServiceRegistryEvent event) {
    ServiceRegistryReference ref = event.getServiceReference();
    addService(ref);
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.service.registry.ServiceRegistryReference

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.