@ Override public Object getProperty ( String propertyName ) { // look for getXXXXClasses final Matcher match = GETCLASSESPROP_PATTERN . matcher ( propertyName ) ; // find match match . find ( ) ; if ( match . matches ( ) ) { String artefactName = GrailsNameUtils . getClassNameRepresentation ( match . group ( 1 ) ) ; if ( artefactHandlersByName . containsKey ( artefactName ) ) { return getArtefacts ( artefactName ) ; } } return super . getProperty ( propertyName ) ; }
Override property access and hit on xxxxClasses to return class arrays of artefacts .