Examples of copyConfigurationFrom()


Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.copyConfigurationFrom()

  protected DefaultListableBeanFactory buildInternalBeanFactory(ConfigurableBeanFactory containingFactory) {
    // Set parent so that references (up container hierarchies) are correctly resolved.
    DefaultListableBeanFactory internalBeanFactory = new DefaultListableBeanFactory(containingFactory);

    // Required so that all BeanPostProcessors, Scopes, etc become available.
    internalBeanFactory.copyConfigurationFrom(containingFactory);

    // Filter out BeanPostProcessors that are part of the AOP infrastructure,
    // since those are only meant to apply to beans defined in the original factory.
    for (Iterator it = internalBeanFactory.getBeanPostProcessors().iterator(); it.hasNext();) {
      BeanPostProcessor postProcessor = (BeanPostProcessor) it.next();
View Full Code Here

Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.copyConfigurationFrom()

        DefaultListableBeanFactory bf = super.createBeanFactory();
        if (getParent() != null)
        {
            //Copy over all processors
            AbstractBeanFactory beanFactory = (AbstractBeanFactory)getParent().getAutowireCapableBeanFactory();
            bf.copyConfigurationFrom(beanFactory);
        }
        return bf;
    }

    public MuleContext getMuleContext()
View Full Code Here

Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.copyConfigurationFrom()

  protected DefaultListableBeanFactory buildInternalBeanFactory(ConfigurableBeanFactory containingFactory) {
    // Set parent so that references (up container hierarchies) are correctly resolved.
    DefaultListableBeanFactory internalBeanFactory = new DefaultListableBeanFactory(containingFactory);

    // Required so that all BeanPostProcessors, Scopes, etc become available.
    internalBeanFactory.copyConfigurationFrom(containingFactory);

    // Filter out BeanPostProcessors that are part of the AOP infrastructure,
    // since those are only meant to apply to beans defined in the original factory.
    for (Iterator<BeanPostProcessor> it = internalBeanFactory.getBeanPostProcessors().iterator(); it.hasNext();) {
      if (it.next() instanceof AopInfrastructureBean) {
View Full Code Here

Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.copyConfigurationFrom()

        DefaultListableBeanFactory bf = super.createBeanFactory();
        if (getParent() != null)
        {
            //Copy over all processors
            AbstractBeanFactory beanFactory = (AbstractBeanFactory)getParent().getAutowireCapableBeanFactory();
            bf.copyConfigurationFrom(beanFactory);
        }
        return bf;
    }

    public MuleContext getMuleContext()
View Full Code Here

Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.copyConfigurationFrom()

  private void createEmbeddedBeanFactory() {
    synchronized (monitor) {
      DefaultListableBeanFactory bf = new DefaultListableBeanFactory(owningBeanFactory);
      if (owningBeanFactory instanceof ConfigurableBeanFactory) {
        bf.copyConfigurationFrom((ConfigurableBeanFactory) owningBeanFactory);
      }
      // just to be on the safe side
      bf.setBeanClassLoader(classLoader);
      // add autowiring processor
      bf.addBeanPostProcessor(new InitialInjectionProcessor());
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.