Search in sources :

Example 1 with UrlMappingEvaluator

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;
}
Also used : UrlMapping(grails.web.mapping.UrlMapping) UrlMappingEvaluator(grails.web.mapping.UrlMappingEvaluator) WebApplicationContext(org.springframework.web.context.WebApplicationContext)

Aggregations

UrlMapping (grails.web.mapping.UrlMapping)1 UrlMappingEvaluator (grails.web.mapping.UrlMappingEvaluator)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1