Grails grailApplication.controllerClasses sort controller by package
问题 I have the following code that grabs all controllers, sorts it, and outputs in li tags: <g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }"> <li<%= c.logicalPropertyName == controllerName ? ' class="active"' : '' %>> <g:link controller="${c.logicalPropertyName}">${c.naturalName}</g:link> </li> </g:each> I have a need to filter out controllers by package i.e. grab controller from a certain package. For example: com.app.module.mars.controller.HelloController com