Professional Documents
Culture Documents
ADF Architecture
ADF Model
ADF Model is a central part of Oracle ADF, enabling you to create ADF applications
based on different types of business services. ADF Model implements data controls and data
bindings. Data controls abstract the implementation technology of a business service by
using standard metadata interfaces to describe the service's operations and data collections,
including information about the properties, methods, and types involved.
In Oracle JDeveloper, developers can view that information as icons that they can
easily drag and drop onto a page. When the developer drags the representation of the service
onto the page, Oracle JDeveloper automatically creates the bindings from the page to the
services. At runtime, the ADF Model layer reads the information describing the application's
data controls and data bindings from appropriate XML files and implements the two-way
connection between the user interface and the application's business services.
Oracle ADF provides ready-to-use data control implementations for common
business service technologies, such as the following:
Enterprise JavaBeans (EJB) session beans and JPA Persistence API entities
JavaBeans components
calls to other task flows. In addition, you can create bounded task flows, which are reusable
task flow segments that can be called from an overall task flow.
ADF Faces
ADF Faces provides the view layer for ADF applications. ADF Faces is a complete
view framework that consists of over 150 Ajax-enabled Java Server Faces (JSF) components,
all built on top of the JSF standard. ADF Faces also can be used as a standalone component
set that works with other non-ADF controller and model technologies.
ADF Mobile Browser
ADF Mobile browser enables you to create application views that are optimized for
browsers on small devices.
ADF Desktop Integration
ADF Desktop Integration enables developers to extend Fusion web applications so
that end users can work with them using Microsoft Excel workbooks as a client.
ADF Swing
ADF Swing is a framework for developing data bound Java clients that use ADF
Model to access business services. You can use ADF Swing to work with a number of
business services on the back end, including ADF Business Components, Enterprise
JavaBeans components, and web services.
ADF Security
The ADF Security framework uses and extends the Oracle Platform Security Services
(OPSS) architecture to simplify the securing of ADF applications and enables fine-grained
access control for ADF resources such as bounded task flows.
Oracle Metadata Services
The Oracle Metadata Services (MDS) framework allows you to create applications
that your customers can further customize for their users or customers and which the end
users can also customize without touching the source code or affecting the ability of the
application to be patched or updated.
4. What are the types of ADF BC?
Entity objects: represent objects in the data source (usually tables, views, and synonyms
in a database)
perform this synchronization from JDeveloper, right-click the entity object in question
and choose Synchronize with Database from the context menu.
9. Creating and Using Managed Beans
Managed beans are Java classes that you register with the application using
various configuration files. When the JSF application starts up, it parses these
configuration files and the beans are made available and can be referenced in an EL
expression, allowing access to the beans' properties and methods. Whenever a managed
bean is referenced for the first time and it does not already exist, the Managed Bean
Creation Facility instantiates the bean by calling the default constructor method on the
bean. If any properties are also declared, they are populated with the declared default
values.
Often, managed beans handle events or some manipulation of data that is best
handled at the front end.
10. Introduction to ADF Task Flows
ADF task flows provide a modular approach for defining control flow in an
application. Instead of representing an application as a single large JSF page flow, you
can break it up into a collection of reusable task flows. Each task flow contains a portion
of the application's navigational graph. The nodes in the task flows are activities.
An activity node represents a simple logical operation such as displaying a page,
executing application logic, or calling another task flow. The transactions between the
activities are called control flow cases.
Task flows can invoke managed beans.
Task Flow Advantages
ADF task flows offer significant advantages over standard JSF page flows, as
described in Table 14-1.
JSF Page Flow
All nodes within a JSF page flow must be JSF You can add to the task flow diagram
pages. No other types of objects can exist
nodes such as views, method calls, and
within the JSF page flow.
calls to other task flows.
Navigation is only between pages.