Is there any difference between the following beside the amount of
code? Are there advantages or disadvantages either way?
public someClass {
@WebServiceRef(value = "WebService")
WebPort port;
// ...
}
public someClass {
WebPort port;
public someClass() {
WebService service = new WebService();
port = service.getPort();
}
// ...
}