Package org.springframework.beans.factory.config

Examples of org.springframework.beans.factory.config.ConfigurableBeanFactory.registerSingleton()


        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
            if (defaultBus
                && applicationContext.getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory) {
                ConfigurableBeanFactory bf = (ConfigurableBeanFactory)applicationContext
                    .getAutowireCapableBeanFactory();
                bf.registerSingleton("cxf", bus);
            }
        }
       
        public List<Interceptor<? extends Message>> getOutFaultInterceptors() {
            return bus.getOutFaultInterceptors();
View Full Code Here


        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
            if (defaultBus
                && applicationContext.getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory) {
                ConfigurableBeanFactory bf = (ConfigurableBeanFactory)applicationContext
                    .getAutowireCapableBeanFactory();
                bf.registerSingleton("cxf", bus);
            }
        }
       
        public List<Interceptor> getOutFaultInterceptors() {
            return bus.getOutFaultInterceptors();
View Full Code Here

        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
            if (defaultBus
                && applicationContext.getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory) {
                ConfigurableBeanFactory bf = (ConfigurableBeanFactory)applicationContext
                    .getAutowireCapableBeanFactory();
                bf.registerSingleton("cxf", bus);
            }
        }
       
        public List<Interceptor> getOutFaultInterceptors() {
            return bus.getOutFaultInterceptors();
View Full Code Here

      logger.debug("Root context path: {}", applicationContext.getServletContext().getContextPath());

      ConfigurableBeanFactory factory = applicationContext.getBeanFactory();

      // register default
      factory.registerSingleton("default.context", applicationContext);

      // get the main factory
      parentFactory = (DefaultListableBeanFactory) factory.getParentBeanFactory();

    } catch (Throwable t) {
View Full Code Here

      contextMap = new ConcurrentHashMap<String, ApplicationContext>(3, 0.9f, 1);
    }
    contextMap.put(name, context);
    // Register context in parent bean factory
    log.debug("Registering - name: {}", name);
    factory.registerSingleton(name, context);
  }

  /**
   * Unloads a context (Red5 application) and removes it from the context map, then removes
   * it's beans from the parent (that is, Red5)
View Full Code Here

        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
            if (defaultBus
                && applicationContext.getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory) {
                ConfigurableBeanFactory bf = (ConfigurableBeanFactory)applicationContext
                    .getAutowireCapableBeanFactory();
                bf.registerSingleton("cxf", bus);
            }
        }
       
        public List<Interceptor> getOutFaultInterceptors() {
            return bus.getOutFaultInterceptors();
View Full Code Here

    contextMap.put(name, context);
    // add the context to the parent, this will be red5.xml
    ConfigurableBeanFactory factory = ((ConfigurableApplicationContext) applicationContext)
        .getBeanFactory();
    // Register context in parent bean factory
    factory.registerSingleton(name, context);
  }

  /**
   * Return context by name
   *
 
View Full Code Here

      ConfigurableBeanFactory factory = applicationContext
          .getBeanFactory();
      // register default
      // add the context to the parent
      factory.registerSingleton("default.context", applicationContext);

    } catch (Throwable e) {
      logger.error("", e);
    }
View Full Code Here

      ConfigurableBeanFactory factory = applicationContext
          .getBeanFactory();

      // register default
      factory.registerSingleton("default.context", applicationContext);

      // get the main factory
      parentFactory = (DefaultListableBeanFactory) factory
          .getParentBeanFactory();
View Full Code Here

      ConfigurableBeanFactory factory = applicationContext
          .getBeanFactory();

      // register default
      factory.registerSingleton("default.context", applicationContext);

      // get the main factory
      parentFactory = (DefaultListableBeanFactory) factory
          .getParentBeanFactory();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.