private String getInterfaceScript ( String scriptName , final GeneratorContext context ) throws IOException { Container container = getContainer ( context ) ; CreatorManager ctManager = ( CreatorManager ) container . getBean ( CreatorManager . class . getName ( ) ) ; if ( ctManager . getCreator ( scriptName , false ) != null ) { InterfaceHandler handler = ( InterfaceHandler ) ContainerUtil . getHandlerForUrlProperty ( container , INTERFACE_HANDLER_URL ) ; return handler . generateInterfaceScript ( context . getServletContext ( ) . getContextPath ( ) , context . getConfig ( ) . getDwrMapping ( ) , scriptName ) ; } else throw new IllegalArgumentException ( "The DWR bean named '" + scriptName + "' was not found in any DWR configuration instance." ) ; }
Get a specific interface script