Example usage for org.springframework.context.annotation CommonAnnotationBeanPostProcessor setResourceFactory

List of usage examples for org.springframework.context.annotation CommonAnnotationBeanPostProcessor setResourceFactory

Introduction

In this page you can find the example usage for org.springframework.context.annotation CommonAnnotationBeanPostProcessor setResourceFactory.

Prototype

public void setResourceFactory(BeanFactory resourceFactory) 

Source Link

Document

Specify the factory for objects to be injected into @Resource / @WebServiceRef / @EJB annotated fields and setter methods, for name attributes and default names.

Usage

From source file:org.jclouds.demo.tweetstore.config.LoggingConfig.java

@PostConstruct
public void initLoggerSupport() {
    CommonAnnotationBeanPostProcessor resourceProcessor = (CommonAnnotationBeanPostProcessor) beanFactory
            .getBean(AnnotationConfigUtils.COMMON_ANNOTATION_PROCESSOR_BEAN_NAME);
    resourceProcessor.setResourceFactory(new LoggerResourceBeanFactory(beanFactory));
}