org.springframework.context.access.ContextSingletonBeanFactoryLocator Java Examples

The following examples show how to use org.springframework.context.access.ContextSingletonBeanFactoryLocator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ComponentLoaderImpl.java    From zstack with Apache License 2.0 5 votes vote down vote up
public ComponentLoaderImpl () {
    checkInit();
    BeanFactoryLocator factoryLocator = ContextSingletonBeanFactoryLocator
            .getInstance(String.format("classpath:%s", CoreGlobalProperty.BEAN_REF_CONTEXT_CONF));
    BeanFactoryReference ref = factoryLocator.useBeanFactory("parentContext");
    ioc = ref.getFactory();
}
 
Example #2
Source File: SpringBeanAutowiringInterceptor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determine the BeanFactoryLocator to obtain the BeanFactoryReference from.
 * <p>The default implementation exposes Spring's default
 * {@link ContextSingletonBeanFactoryLocator}.
 * @param target the target bean to autowire
 * @return the BeanFactoryLocator to use (never {@code null})
 * @see org.springframework.context.access.ContextSingletonBeanFactoryLocator#getInstance()
 */
protected BeanFactoryLocator getBeanFactoryLocator(Object target) {
	return ContextSingletonBeanFactoryLocator.getInstance();
}
 
Example #3
Source File: SpringBeanAutowiringInterceptor.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Determine the BeanFactoryLocator to obtain the BeanFactoryReference from.
 * <p>The default implementation exposes Spring's default
 * {@link ContextSingletonBeanFactoryLocator}.
 * @param target the target bean to autowire
 * @return the BeanFactoryLocator to use (never {@code null})
 * @see org.springframework.context.access.ContextSingletonBeanFactoryLocator#getInstance()
 */
protected BeanFactoryLocator getBeanFactoryLocator(Object target) {
	return ContextSingletonBeanFactoryLocator.getInstance();
}