public void importBeans ( String resourcePattern ) { try { Resource [ ] resources = resourcePatternResolver . getResources ( resourcePattern ) ; for ( Resource resource : resources ) { importBeans ( resource ) ; } } catch ( IOException e ) { LOG . error ( "Error loading beans for resource pattern: " + resourcePattern , e ) ; } }
Imports Spring bean definitions from either XML or Groovy sources into the current bean builder instance