public void defineFunction ( String prefix , String function , Method method ) throws NoSuchMethodException { if ( prefix == null || function == null || method == null ) { throw new NullPointerException ( "Null argument for defineFunction" ) ; } if ( ! Modifier . isStatic ( method . getModifiers ( ) ) ) { throw new NoSuchMethodException ( "The method specified in defineFunction must be static: " + method ) ; } if ( function . equals ( "" ) ) { function = method . getName ( ) ; } elManager . mapFunction ( prefix , function , method ) ; }
Define an EL function in the local function mapper .