•AutoProxy为所有相关类多次生成C ++ Proxy类

时间:2018-12-28 07:38:29

标签: java

•AutoProxy is generating the C++ Proxy class multiple time for all the dependent class , ideally it should check , if the proxy class that it going to generate already present , then it should skip that generation ( atleast for the basic data types lke String, ArrayList,Map). This will save some time, if repetead generation is stopped for basic data type

Detail :- 

Proxy generation for say File1.java****

1>Beginning Proxy generation.
 1>Proxy generation for java/lang/Object
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Object
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/Object
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Object
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Throwable
 1>Proxy generation for java/lang/RuntimeException
 1>Proxy generation for java/lang/Class
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Throwable
 1>Proxy generation for java/lang/RuntimeException
 1>Proxy generation for java/lang/Class
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Throwable
 1>Proxy generation for java/lang/RuntimeException
 1>Proxy generation for java/lang/Class
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/ArrayList
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Throwable
 1>Proxy generation for java/lang/RuntimeException
 1>Proxy generation for java/lang/Class
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/Map
 1>Finished Proxy generation.
 -----------------------------Proxy generation for say File2.java------------------
 1>Beginning Proxy generation.
 1>Proxy generation for java/lang/Object
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/lang/Double
 1>Proxy generation for java/lang/Boolean
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Double
 1>Proxy generation for java/lang/Boolean
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/util/HashMap
 1>Proxy generation for java/util/Set
 1>Proxy generation for java/util/AbstractMap
 1>Proxy generation for java/util/Iterator
 1>Proxy generation for java/lang/Throwable
 1>Proxy generation for java/lang/RuntimeException
 1>Proxy generation for java/lang/Class
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Boolean
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/lang/Double
 1>Proxy generation for java/lang/String
 1>Proxy generation for java/lang/Boolean
 1>Proxy generation for java/util/Map
 1>Proxy generation for java/lang/Double
 1>Finished Proxy generation.

使用Call Auto proxy命令为每个Java文件生成代理类,以生成代理类并为所有Java类调用以下命令

    call %JACE_CUR_HOME%\bin\AutoProxy.cmd "..\..\generated\inc\jace\peer\%%
    ~A" "..\..\generated\src\jace\peer\%%
    ~A" "..\..\generated\inc" "..\..\generated\src" "%EXT_CLASS_PATH%;% 
    JAVA_CUR_HOME%\jre\lib\rt.jar;%JACE_WORK_DIR%\%PROJ_NAME%\java" -mindep 
    -exportsymbols

调用自动代理命令以为每个Java文件生成代理类

  1. 应该检查一下是否已经存在基本数据类型的代理类,然后Autoproxy应该跳过该创建。

0 个答案:

没有答案