use of org.grails.spring.RuntimeSpringConfiguration in project grails-core by grails.
the class DefaultGrailsPluginManager method reloadPlugin.
public void reloadPlugin(GrailsPlugin plugin) {
plugin.doArtefactConfiguration();
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration(parentCtx);
doRuntimeConfiguration(plugin.getName(), springConfig);
springConfig.registerBeansWithContext((GenericApplicationContext) applicationContext);
plugin.doWithApplicationContext(applicationContext);
plugin.doWithDynamicMethods(applicationContext);
}
use of org.grails.spring.RuntimeSpringConfiguration in project grails-core by grails.
the class DefaultGrailsPluginTests method testDoWithRuntimeConfiguration.
public void testDoWithRuntimeConfiguration() {
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration();
versionPlugin.doWithRuntimeConfiguration(springConfig);
ApplicationContext ctx = springConfig.getApplicationContext();
assertTrue(ctx.containsBean("classEditor"));
}
use of org.grails.spring.RuntimeSpringConfiguration in project grails-core by grails.
the class DefaultGrailsPluginTests method testDoWithApplicationContext.
public void testDoWithApplicationContext() {
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration();
versionPlugin.doWithRuntimeConfiguration(springConfig);
ApplicationContext ctx = springConfig.getApplicationContext();
assertTrue(ctx.containsBean("classEditor"));
versionPlugin.doWithApplicationContext(ctx);
}
Aggregations