STS-3532: support setting @Component and @Bean annotated classes as
JavaConfigs