use of grails.web.mapping.UrlMappingEvaluator in project grails-core by grails.
the class DefaultUrlMappingsHolder method addMappings.
@Override
public Collection<UrlMapping> addMappings(Closure mappings) {
WebApplicationContext applicationContext = (WebApplicationContext) Holders.findApplicationContext();
UrlMappingEvaluator evaluator = new DefaultUrlMappingEvaluator(applicationContext);
List<UrlMapping> newMappings = evaluator.evaluateMappings(mappings);
this.urlMappings.addAll(newMappings);
initialize();
return newMappings;
}
Aggregations