我有一个包含"逻辑"类的包(如CheckAuthenticationDataLogic.java,GetVocabularyiesLogic.java).另一个类--ApiService.java用于生成wsdl.ApiService.java有很多像这样的方法:
/**
* Check authentication data.
* @param contractNumber - number of contract.
* @param msisdn - msisdn.
* @param superPassword - super password.
* @return result of authentication.
*/
@WebMethod
@WebResult(name = "result")
public CheckAuthenticationDataResult checkAuthenticationData(@WebParam(name = "contractNumber")
final String contractNumber,
@WebParam(name = "msisdn")
final String msisdn,
@WebParam(name = "superPassword")
final String superPassword) {
return runLogic(new CheckAuthenticationDataLogic(contractNumber, msisdn, superPassword));
}
Run Code Online (Sandbox Code Playgroud)
如你所见它只是一个代理方法...所以我想避免两次做同样的工作,并从逻辑类生成WSDL而不编写ApiService.java.是否存在用于此目的的任何工具或库?
| 归档时间: |
|
| 查看次数: |
61409 次 |
| 最近记录: |