def doWithApplicationContext = { applicationContext ->
XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(applicationContext);
xmlReader.loadBeanDefinitions(new ClassPathResource("foo-config.xml"));
}
If your Grails plugin needs to load Spring config from a JAR that it depends on you can do this is the doWithApplicationContext hook.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment