protected void prepareBeanFactoryByRose(ConfigurableListableBeanFactory beanFactory)
            throws IOException {
        BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory;
        AnnotationConfigUtils.registerAnnotationConfigProcessors(registry);

        String[] messageBaseNames = getMessageBaseNames();
        if (messageBaseNames != null && messageBaseNames.length > 0) {
            if (logger.isDebugEnabled()) {
                logger.debug("[roseWebApp/messages] starting registerMessageSourceIfNecessary");
            }
            registerMessageSourceIfNecessary(registry, messageBaseNames);
            if (logger.isDebugEnabled()) {
                logger.debug("[roseWebApp/messages] finished registerMessageSourceIfNecessary");
            }
        }
    }
protected void prepareBeanFactoryByRose ( ConfigurableListableBeanFactory beanFactory ) throws IOException { BeanDefinitionRegistry registry = ( BeanDefinitionRegistry ) beanFactory ; AnnotationConfigUtils . registerAnnotationConfigProcessors ( registry ) ; String [ ] messageBaseNames = getMessageBaseNames ( ) ; if ( messageBaseNames != null && messageBaseNames . length > 0 ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "[roseWebApp/messages] starting registerMessageSourceIfNecessary" ) ; } registerMessageSourceIfNecessary ( registry , messageBaseNames ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "[roseWebApp/messages] finished registerMessageSourceIfNecessary" ) ; } } }
Rose对BeanFactory的特殊处理，必要时可以覆盖这个方法去掉Rose的特有的处理

@throws IOException