Java Business Proxy Mode ~

Source: Internet
Author: User

The business proxy pattern is used to decouple the presentation layer from the business layer. It is basically used to reduce the communication or remote lookup capabilities of the business layer code in the presentation layer code. The following entities are available at the business level.

    • Client -The presentation layer code can be Jsp,servlet or UI Java code.

    • Business Agent -a single entry-point class that provides access to a business service method for a client entity.

    • Lookup Service -the Lookup service object is responsible for obtaining access to the business object for the implementation of the relevant business and for providing the business of the delegate object.

    • Business Services -business service interfaces. The specific class implements this business service to provide the actual business implementation logic.

Implementing an instance

In this implementation instance, a business proxy pattern will be created for the various entities Client ,,, BusinessDelegate BusinessService LookUpService JMSService and EJBService .

BusinessDelegatePatternDemoThis is a demo class that will be used BusinessDelegate and used Client to demonstrate the use of the business proxy pattern.

The structure of the business proxy pattern example is as shown in-

Click on the link to view the details

Java Business Proxy Mode ~

Related Article

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.