Proxy mode (dynamic proxy for Java)

Source: Internet
Author: User

(a) What is it? What?

①: Definition:

②: Features: 1.0 proxy class (intermediate suitor), with the same interface as the delegate class (suitor);

2.0 proxy class ---> is mainly responsible for preprocessing messages for the delegate class , filtering the message, passing the message to the delegate class, processing the message afterwards, and so on. "Similar: Help others chase a girlfriend, inquire the news".

3.0 There is usually a correlation between the proxy class and the delegate class "Like a buddy." An object of a proxy class is associated with an object of a delegate class . The proxy class itself does not actually implement the service , but rather by invoking the method of the delegate class to provide a particular service. " the kind of Guy who likes to chase is doing things according to the demands of the girl's buddies ."

③: Category: 1.0 static Agents:

2.0 Dynamic Agents:

(b) Why? Why

(c) Where is it used? where

(d) What to do? How?

Proxy mode (dynamic proxy for Java)

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.