Examples of useBeanFactory()


Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

   *
   * @return
   */
  protected BeanFactory retrieveBeanFactory() {
    BeanFactoryLocator factoryLocator = new JbpmFactoryLocator();
    BeanFactoryReference factory = factoryLocator.useBeanFactory(factoryKey);
    if (factory == null)
      throw new IllegalArgumentException("no beanFactory found under key=" + factoryKey);

    return factory.getFactory();
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

   *
   * @return
   */
  protected BeanFactory retrieveBeanFactory() {
    BeanFactoryLocator factoryLocator = new JbpmFactoryLocator();
    BeanFactoryReference factory = factoryLocator.useBeanFactory(factoryKey);
    if (factory == null)
      throw new IllegalArgumentException("no beanFactory found under key=" + factoryKey);

    try {
      return factory.getFactory();
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

            if (logger.isDebugEnabled())
            {
                logger.debug("Getting parent context definition: using parent context key of '" + parentContextKey
                             + "' with BeanFactoryLocator");
            }
            parentContext = (ApplicationContext) locator.useBeanFactory(parentContextKey).getFactory();
        }

        return parentContext;
    }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

      Log logger = LogFactory.getLog(ContextLoader.class);
      if (logger.isDebugEnabled()) {
        logger.debug("Getting parent context definition: using parent context key of '" +
            parentContextKey + "' with BeanFactoryLocator");
      }
      this.parentContextRef = locator.useBeanFactory(parentContextKey);
      parentContext = (ApplicationContext) this.parentContextRef.getFactory();
    }

    return parentContext;
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

      Log logger = LogFactory.getLog(ContextLoader.class);
      if (logger.isDebugEnabled()) {
        logger.debug("Getting parent context definition: using parent context key of '" +
            parentContextKey + "' with BeanFactoryLocator");
      }
      this.parentContextRef = locator.useBeanFactory(parentContextKey);
      parentContext = (ApplicationContext) this.parentContextRef.getFactory();
    }

    return parentContext;
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

      BeanFactoryLocator locator = ContextSingletonBeanFactoryLocator.getInstance(locatorFactorySelector);
      if (this.logger.isDebugEnabled()) {
        this.logger.debug("Getting parent context definition: using parent context key of '" +
            parentContextKey + "' with BeanFactoryLocator");
      }
      this.parentContextRef = locator.useBeanFactory(parentContextKey);
      parentContext = (ApplicationContext) this.parentContextRef.getFactory();
    }

    return parentContext;
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

      BeanFactoryLocator locator = ContextSingletonBeanFactoryLocator.getInstance(locatorFactorySelector);
      if (logger.isDebugEnabled()) {
        logger.debug("Getting parent context definition: using parent context key of '" +
            parentContextKey + "' with BeanFactoryLocator");
      }
      this.parentContextRef = locator.useBeanFactory(parentContextKey);
      parentContext = (ApplicationContext) this.parentContextRef.getFactory();
    }

    return parentContext;
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

      BeanFactoryLocator locator = ContextSingletonBeanFactoryLocator.getInstance(locatorFactorySelector);
      if (logger.isDebugEnabled()) {
        logger.debug("Getting parent context definition: using parent context key of '" +
            parentContextKey + "' with BeanFactoryLocator");
      }
      this.parentContextRef = locator.useBeanFactory(parentContextKey);
      parentContext = (ApplicationContext) this.parentContextRef.getFactory();
    }

    return parentContext;
  }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

     * @param contextName The name of the application context {@link BeanFactory} to return.
     * @return The (singleton) {@link BeanFactory} for the application context.
     */
    public static BeanFactory getApplicationContext(final String contextName) {
        final BeanFactoryLocator locator = SingletonBeanFactoryLocator.getInstance(BEAN_REF_FACTORY_PATH);
        final BeanFactoryReference reference = locator.useBeanFactory(contextName);
        return reference.getFactory();
    }
   
    /** ensure this class can't be instantiated */
    private PortalApplicationContextFacade() { }
View Full Code Here

Examples of org.springframework.beans.factory.access.BeanFactoryLocator.useBeanFactory()

    return initFactoryName;
  }

  protected static BeanFactory createBeanFactory(String factoryName) {
    BeanFactoryLocator bfl = ContextSingletonBeanFactoryLocator.getInstance();
    BeanFactoryReference ref = bfl.useBeanFactory(factoryName);
    BeanFactory result = ref.getFactory();
    log.info("ClassFactory has been initialized with beanFactory '" + factoryName + "'");
    return result;
  }
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.