public static < T > T create ( final InterfaceDescriptor < T > descriptor , final Invoker invoker ) { if ( descriptor == null ) throw new NullPointerException ( "descriptor" ) ; if ( invoker == null ) throw new NullPointerException ( "invocationHandler" ) ; InvocationProxy < T > invocationProxy = new InvocationProxy < T > ( descriptor , invoker , null ) ; return invocationProxy . toProxy ( ) ; }
Creates a custom client .