Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

obtain grails url mappings from memory

hi i want to obtain the grails url mappings from memory and change them dynamically. My doubt is where to get the url mappings from memory programatically ? is it available in the grailsapplication?

like image 602
mahati Avatar asked Jan 31 '11 06:01

mahati


1 Answers

There's a UrlMappingsHolder Spring bean under the grailsUrlMappingsHolder name, so you can access the array of UrlMapping with:

def grailsUrlMappingsHolder
...
UrlMapping[] urlMappings = grailsUrlMappingsHolder.urlMappings
like image 149
Burt Beckwith Avatar answered Sep 22 '22 06:09

Burt Beckwith