Introduction to Oracle ADF framework

Source: Internet
Author: User

The Application Development Framework (ADF) is short for short. Its predecessor isBc4j. The name indicates an end-to-end framework. Like spring, it provides support at every layer of the enterprise application architecture. Shows the architecture of the ADF:

In each layer, the ADF has some components. This time I want to talk about the data binding of the ADF, because it isolates the business logic layer and the web layer, making the two layers more independent. However, the ADF seems to be too complex, making it difficult to get started.
The key data binding concepts in the ADF are as follows:

Data Control:
Data Control is the abstraction of business interfaces. That is to say, all methods for accessing business objects are now implemented through data control, so that the binding layer can access data in one way, whether the data objects in the background are implemented in a way. Data control can be viewed as a proxy mechanism.

Iterator bindings and control bindings:
Binding
It is a lightweight object. Its main purpose is to decouple background data from front-end display. This is a common issue. Let's see how the ADF works. Iterator binding
Cooperation with data control that provides collection object data. Control bindings
A standard interface is provided to allow the user interface to process collection objects or call business methods.

Binding containers:
The binding container object records the iterator binding and control binding used on a user interface. An XML file records the content and produces a binding iner at runtime.

Binding context:
Binding context is a larger concept than binding iner. It contains all information about binding container and data control.
The following describes a simple application blueprint:

This
An application is like this. Now there is a forum on which a page is used for review
Some threads and specify a team to reply to it. This page is called reviewthreads. jsp.
This page needs to obtain data from the background forumservice and specify the team. forumservice to be replied to is an application of the ADF.
The application module is an abstraction of the business logic.
Class, EJB, WebService, etc. It also has its own method to call View
Object. You only need to think of it as a service component ). In addition, a drop-down box for all available teams is required for this page. The data in this drop-down box comes from a Web
Service lookupcodes.
Each service component has a data
Control encapsulates the business methods of this component. The binding context of the application contains two binding containers,
Reviewthreads and unansweredpostings. The former is provided for reviewthreads. jsp, and the latter supports uix pages.
(Uix is an XML-based interface language) and a swing panel of jclient.
The reviewthreads binding container contains the following binding:
1. Three iterator bindings pointing to the data set used by the application. Two are provided by forumservice and one is provided by lookupcodes,
2. Three Control bindings that support elements on the Interface
First, an attribute control binding is used to display the Forum name in the name input box on the page.
Followed by a list binding to support drop-down boxes
Finally, a Range binding is used to support the <C: foreach> display team object of jstl.
3. A control binding is used to call a method of forumservice, which specifies that the team replies to thread.

Yes
Note that the control value bindings requires the iterator binding to obtain their data. Especially list
Value binding, which requires two iterator at the same time
Binding. One is used to obtain the values in all lists, and the other is used to provide the values selected in lists.

Describes how the above components work together during runtime.
. A binding context contains one or more data control and binding container. Every binding
Container has one or more iterator bindings that specify the data set used by a page. Every iterator
Binding obtains and changes data from a specific data control. Binding container also has one or more controls
Binding to support page control. When control binding needs to be bound to data, an iterator is required.
Binding. For a control action
Binding. For example, the binding associated with the submit key on the page will be associated with a data control to call the service layer method.


This article from: http://dev.csdn.net/article/84200.shtm

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.