protected static BeanDefinition getServerConfigurationBeanDefinition ( ) { String className = ServerConfiguration . class . getName ( ) ; GenericBeanDefinition result = new GenericBeanDefinition ( ) ; result . setAutowireCandidate ( true ) ; result . setScope ( BeanDefinition . SCOPE_SINGLETON ) ; result . setBeanClass ( Server . class ) ; result . setFactoryMethodName ( "getConfig" ) ; result . setAttribute ( "id" , className ) ; result . setAttribute ( "name" , className ) ; return result ; }
Provide a generic bean definition if the Server was not created by Spring