Search in sources :

Example 1 with GrailsConfigurationAware

use of grails.core.support.GrailsConfigurationAware in project grails-core by grails.

the class AbstractGrailsApplication method configChanged.

@Override
public void configChanged() {
    updateFlatConfig();
    final ArtefactHandler[] handlers = getArtefactHandlers();
    if (handlers != null) {
        for (ArtefactHandler handler : handlers) {
            if (handler instanceof GrailsConfigurationAware) {
                ((GrailsConfigurationAware) handler).setConfiguration(config);
            }
        }
    }
}
Also used : GrailsConfigurationAware(grails.core.support.GrailsConfigurationAware) ArtefactHandler(grails.core.ArtefactHandler)

Aggregations

ArtefactHandler (grails.core.ArtefactHandler)1 GrailsConfigurationAware (grails.core.support.GrailsConfigurationAware)1