Package com.opengamma.component

Examples of com.opengamma.component.ComponentKey


   * @param repo  the repository, not null
   * @param beanFactory  the bean factory, not null
   */
  public static void publishComponentRepository(ComponentRepository repo, ConfigurableListableBeanFactory beanFactory) {
    for (Entry<ComponentKey, Object> entry : repo.getInstanceMap().entrySet()) {
      ComponentKey key = entry.getKey();
      beanFactory.registerSingleton(toSpringName(key), entry.getValue());
     
      // handle names that came from Spring and don't match standard pattern
      if (beanFactory.containsBean(key.getClassifier()) == false) {
        beanFactory.registerSingleton(key.getClassifier(), entry.getValue());
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.component.ComponentKey

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.