protected String resourceName ( final String className ) { String name = className ; if ( ! name . startsWith ( "/" ) ) { name = "/" + name ; } if ( ! name . endsWith ( DOT_GROOVY ) ) { name = name . replace ( ' ' , ' ' ) ; name += DOT_GROOVY ; } return name ; }
Translate class - name into resource - name .