Holder class usage

Source: Internet
Author: User

Javax. xml. ws. Holder

 

In Java, "call by value" is called by copying the original value (instead of the original value)

If the parameter is an object reference, and the parameter reference changes the object's domain or calls a method to change the object's state, the object changes for other code that holds the object reference.

That is to say, the in parameter is a Java parameter, and the out and inout parameters are not inherent in Java.

While the JAX-WS2.0 supports the out, inout parameters.

Holder provides a variable packaging for immutable object references and supports reference transfer in Java. In this way, Java can communicate with Web services that support inout and out parameters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.