Created
May 24, 2010 20:53
-
-
Save jbaruch/412411 to your computer and use it in GitHub Desktop.
Usage example for http://github.com/jbaruch/spring-java-configuration-support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class ConfigurationWithSupport { | |
@Autowired | |
private ConfigurationSupport configurationSupport; | |
@Bean | |
public SomeBean someBean() { | |
SomeFactoryBean someFactoryBean = new SomeFactoryBean(); | |
//configure your factoryBean here | |
return configurationSupport.getObject(someFactoryBean); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment