开发者

Creating a new package in Java to make Web Service requests, what should I call it?

开发者 https://www.devze.com 2023-01-18 07:26 出处:网络
Bit of a newbie question, but I\'m unfamiliar with Java.I\'m thinking either: com.company.we开发者_JAVA技巧bservices

Bit of a newbie question, but I'm unfamiliar with Java. I'm thinking either:

com.company.we开发者_JAVA技巧bservices

or

com.company.webserviceretriever

or

com.company.webservice.retriever

Any thoughts or opinions on the matter?


There is no such hard and fast rule. But com.company.service should have the interface and com.company.service.impl in which you implement the interface which internally consumes the web service. In future if you want to change the implementation from web service to something else it will still make sense and your service client should have no idea about it.

0

精彩评论

暂无评论...
验证码 换一张
取 消