Skip to content

Instantly share code, notes, and snippets.

@jbaruch
Created May 24, 2010 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbaruch/412411 to your computer and use it in GitHub Desktop.
Save jbaruch/412411 to your computer and use it in GitHub Desktop.
@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