チェンジセット 290
- コミット日時:
- 2008/05/07 19:55:05 (14 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/im-jssp/pom.xml
r287 r290 68 68 <groupId>org.apache.axis2</groupId> 69 69 <artifactId>axis2-adb-codegen</artifactId> 70 <version>1. 3</version>70 <version>1.4</version> 71 71 <scope>runtime</scope> 72 72 </dependency> … … 74 74 <groupId>org.apache.axis2</groupId> 75 75 <artifactId>axis2-codegen</artifactId> 76 <version>1. 3</version>76 <version>1.4</version> 77 77 <scope>compile</scope> 78 78 </dependency> … … 80 80 <groupId>org.apache.axis2</groupId> 81 81 <artifactId>axis2-kernel</artifactId> 82 <version>1.3</version> 83 <scope>compile</scope> 84 </dependency> 85 <dependency> 86 <groupId>javassist</groupId> 87 <artifactId>javassist</artifactId> 88 <version>3.6.0.GA</version> 82 <version>1.4</version> 89 83 <scope>compile</scope> 90 84 </dependency> … … 102 96 </dependency> 103 97 <dependency> 104 <groupId>ch.qos.logback</groupId>105 <artifactId>logback-core</artifactId>106 <version>0.9.8</version>107 <scope>runtime</scope>108 </dependency>109 <dependency>110 <groupId>ch.qos.logback</groupId>111 <artifactId>logback-classic</artifactId>112 <version>0.9.8</version>113 <scope>runtime</scope>114 </dependency>115 <dependency>116 <groupId>org.slf4j</groupId>117 <artifactId>jcl104-over-slf4j</artifactId>118 <version>1.4.3</version>119 <scope>runtime</scope>120 </dependency>121 <dependency>122 <groupId>org.slf4j</groupId>123 <artifactId>log4j-over-slf4j</artifactId>124 <version>1.4.3</version>125 <scope>runtime</scope>126 </dependency>127 <dependency>128 <groupId>org.slf4j</groupId>129 <artifactId>slf4j-api</artifactId>130 <version>1.4.3</version>131 <scope>runtime</scope>132 </dependency>133 <dependency>134 98 <groupId>junit</groupId> 135 99 <artifactId>junit</artifactId> trunk/im-jssp/src/main/java/org/intra_mart/jssp/script/api/SOAPClientObject.java
r288 r290 23 23 import java.util.Map; 24 24 import java.util.WeakHashMap; 25 26 import javassist.ClassClassPath;27 import javassist.ClassPool;28 import javassist.CtClass;29 import javassist.CtMethod;30 import javassist.CtNewMethod;31 25 32 26 import javax.xml.namespace.QName; … … 81 75 private static boolean _javacVerbose = false; 82 76 83 private static Method _method4getConfiguration;84 77 private static ThreadLocal<ClassLoader> _soapClientClassLoaderThreadLocal = new ThreadLocal<ClassLoader>(); 85 78 86 79 static { 87 createCodeGenConfigurationGetterByJavassist();88 89 80 initializeSOAPClientWorkDir(null); 90 81 initializeStubGenerationMode(null); … … 381 372 String portName, 382 373 String serviceName) { 383 384 385 CodeGenConfiguration codeGenConfiguration;386 374 try { 387 375 // エンジン生成 388 376 CodeGenerationEngine engine = getCachedCodeGenEngine(wsdlLocationURI, outputLocation, portName, serviceName); 389 390 // PLAN JavassistでCodeGenerationEngine#getConfiguration()メソッドが生成されなかった場合の処理の追加。391 codeGenConfiguration = (CodeGenConfiguration) _method4getConfiguration.invoke(engine);377 CodeGenConfiguration codeGenConfiguration = engine.getConfiguration(); 378 379 return codeGenConfiguration; 392 380 } 393 381 catch (Exception e) { 394 382 throw Context.throwAsScriptRuntimeEx(e); 395 383 } 396 397 return codeGenConfiguration;398 384 } 399 385 … … 1162 1148 1163 1149 /** 1164 *1165 */1166 private static void createCodeGenConfigurationGetterByJavassist(){1167 try {1168 String methodName = "getConfiguration";1169 1170 ClassPool cp = ClassPool.getDefault();1171 cp.insertClassPath(new ClassClassPath(SOAPClientObject.class));1172 CtClass class4codeGenerationEngine = cp.get("org.apache.axis2.wsdl.codegen.CodeGenerationEngine");1173 1174 // Getter作成!1175 CtMethod m = CtNewMethod.make(1176 "public org.apache.axis2.wsdl.codegen.CodeGenConfiguration " + methodName + "(){"1177 + " return this.configuration; " +1178 "}",1179 class4codeGenerationEngine);1180 class4codeGenerationEngine.addMethod(m);1181 1182 // ロード1183 class4codeGenerationEngine.toClass();1184 1185 _method4getConfiguration = CodeGenerationEngine.class.getMethod(methodName);1186 }1187 catch (Exception e) {1188 throw new IllegalStateException(e);1189 }1190 }1191 1192 /**1193 1150 * @return 1194 1151 */