protected void generatePreDelegateCode( Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException { if ("setClientInfo".equals(method.getName())) { iw.println("try"); iw.println("{"); iw.upIndent(); super.generatePreDelegateCode(intfcl, genclass, method, iw); } else super.generatePreDelegateCode(intfcl, genclass, method, iw); }
protected void generatePreDelegateCode( Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException { // concurrent-access-debug only if (CONCURRENT_ACCESS_DEBUG) { iw.println("Object record;"); iw.println("synchronized (concurrentAccessRecorder)"); iw.println("{"); iw.upIndent(); iw.println("record = concurrentAccessRecorder.record();"); iw.println("int num_concurrent_clients = concurrentAccessRecorder.size();"); iw.println("if (num_concurrent_clients != 1)"); iw.upIndent(); iw.println( "logger.log(MLevel.WARNING, " + "concurrentAccessRecorder.getDump(\042Apparent concurrent access! (\042 + num_concurrent_clients + \042 clients.\042) );"); iw.downIndent(); iw.downIndent(); iw.println("}"); iw.println(); } // end concurrent-access-debug only super.generatePreDelegateCode(intfcl, genclass, method, iw); }
protected void generatePreDelegateCode( Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException { if (method.getExceptionTypes().length > 0) super.generatePreDelegateCode(intfcl, genclass, method, iw); }
protected void generatePreDelegateCode( Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException { super.generatePreDelegateCode(intfcl, genclass, method, iw); }