Package org.springframework.beans.support

Examples of org.springframework.beans.support.ResourceEditorRegistrar


  protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) {
    // Tell the internal bean factory to use the context's class loader.
    beanFactory.setBeanClassLoader(getClassLoader());

    // Populate the bean factory with context-specific resource editors.
    beanFactory.addPropertyEditorRegistrar(new ResourceEditorRegistrar(this));

    // Configure the bean factory with context callbacks.
    beanFactory.addBeanPostProcessor(new ApplicationContextAwareProcessor(this));
    beanFactory.ignoreDependencyInterface(ResourceLoaderAware.class);
    beanFactory.ignoreDependencyInterface(ApplicationEventPublisherAware.class);
View Full Code Here


  private ApplicationContext applicationContext;

  @SuppressWarnings("deprecation")
  @Override
  public ResourceEditorRegistrar getObject() throws Exception {
    return new ResourceEditorRegistrar(applicationContext);
  }
View Full Code Here

TOP

Related Classes of org.springframework.beans.support.ResourceEditorRegistrar

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.