public < T extends TypedTagLibrary > T createInvoker ( Class < T > type ) { ProxyImpl handler = new ProxyImpl ( ) ; Object proxy = Proxy . newProxyInstance ( type . getClassLoader ( ) , new Class [ ] { type } , handler ) ; handler . setMetaClass ( InvokerHelper . getMetaClass ( proxy . getClass ( ) ) ) ; return type . cast ( proxy ) ; }
Creates a type - safe invoker for calling taglibs .