SlideShare uma empresa Scribd logo
1 de 43
Baixar para ler offline
GOF
Naveen Kumar K S
Adith.Naveen@gmail.com
Introduction
¡ Design patterns represent the best practices used
by experienced object-oriented software
developers.
¡ Design patterns are solutions to general problems
that software developers faced during software
development
¡ All Design Patterns are got based on trial and
error by software engineers.
GOF?
¡ Discussed in 1994
¡ By Four people
¡ Erich Gamma
¡ Richard Helm
¡ Ralph Johnson
¡ John Vlissides
¡ To encourage people to go with reusable coding
Types of Design Patterns
¡ There are 23 design patterns which can be
classified in three categories: Creational,
Structural and Behavioral patterns.
¡ Another design pattern J2EE will be discussed in
other course
Creational Patterns
Abstract Factory Creates an instance of several families of classes
Builder Separates object construction from its representation
Factory Method Creates an instance of several derived classes
Prototype A fully initialized instance to be copied or cloned
Singleton A class of which only a single instance can exist
Structural Patterns
Adapter Match interfaces of different classes
Bridge Separates an object’s interface from its implementation
Composite A tree structure of simple and composite objects
Decorator Add responsibilities to objects dynamically
Facade A single class that represents an entire subsystem
Flyweight A fine-grained instance used for efficient sharing
Proxy An object representing another object
Behavioral Patterns
Chain of Resp. A way of passing a request between a chain of objects
Command Encapsulate a command request as an object
Interpreter A way to include language elements in a program
Iterator Sequentially access the elements of a collection
Mediator Defines simplified communication between classes
Memento Capture and restore an object's internal state
Observer A way of notifying change to a number of classes
State Alter an object's behavior when its state changes
Strategy Encapsulates an algorithm inside a class
Template Method Defer the exact steps of an algorithm to a subclass
Visitor Defines a new operation to a class without change
Singleton
¡ Singleton pattern is one of the simplest design
patterns in Java. This type of design pattern
comes under creational pattern as this pattern
provides one of the best ways to create an
object.
Factory Pattern
¡ Factory pattern is one of most used design
pattern in Java. This type of design pattern
comes under creational pattern as this pattern
provides one of the best ways to create an
object.
¡ In Factory pattern, we create object without
exposing the creation logic to the client and
refer to newly created object using a common
interface.
Abstract Factory Pattern
¡ Abstract Factory patterns work around a super-
factory which creates other factories. This factory
is also called as factory of factories. This type of
design pattern comes under creational pattern
as this pattern provides one of the best ways to
create an object.
Prototype Pattern
¡ Prototype pattern refers to creating duplicate
object while keeping performance in mind. This
type of design pattern comes under creational
pattern as this pattern provides one of the best
ways to create an object.
Bridge Pattern
¡ Bridge is used when we need to decouple an
abstraction from its implementation so that the
two can vary independently. This type of design
pattern comes under structural pattern as this
pattern decouples implementation class and
abstract class by providing a bridge structure
between them.
Need for Bridge Pattern
Bridge Pattern
Filter Pattern
¡ Filter pattern or Criteria pattern is a design
pattern that enables developers to filter a set of
objects using different criteria and chaining them
in a decoupled way through logical operations.
This type of design pattern comes under
structural pattern as this pattern combines
multiple criteria to obtain single criteria.
Decorator Pattern
¡ Decorator pattern allows a user to add new
functionality to an existing object without altering
its structure. This type of design pattern comes
under structural pattern as this pattern acts as a
wrapper to existing class.
Façade Pattern
¡ Facade pattern hides the complexities of the
system and provides an interface to the client
using which the client can access the system. This
type of design pattern comes under structural
pattern as this pattern adds an interface to
existing system to hide its complexities.
Observer Pattern
¡ Observer pattern is used when there is one-to-
many relationship between objects such as if one
object is modified, its dependent objects are to
be notified automatically. Observer pattern falls
under behavioral pattern category.
Delegate Pattern
¡ Business Delegate Pattern is used to decouple
presentation tier and business tier. It is basically
use to reduce communication or remote lookup
functionality to business tier code in presentation
tier code. In business tier we have following
entities.
Thank You
J2EE Design Pattern
J2EE Patterns
¡ Presentation Tier Patterns
¡ Business Tier Patterns
¡ Integration Tier Patterns
Intercepting Filter
¡ intercepts incoming requests and outgoing
responses and applies a filter.
¡ These filters may be added and removed in a
declarative manner
¡ For an incoming request, this is often a Front
Controller
Intercepting Filter
Front Controller
¡ Is a container to hold the common processing
logic that occurs within the presentation tier
¡ A controller handles requests and manages
content retrieval, security, view management,
and navigation, delegating to a Dispatcher
component to dispatch to a View.
¡ The Front Controller pattern creates central
control logic for presentation request handling.
Front controller
Dispatcher View
¡ Combines a controller and dispatcher with views
and helpers to handle client requests and
prepare a dynamic presentation as the response.
¡ A dispatcher is responsible for view management
and navigation and can be encapsulated either
within a controller, a view, or a separate
component.
¡ The Dispatcher View pattern handles the request
and generates a response while managing
limited business processing.
Dispatcher View
Business Tier
Patterns
Business Delegate
¡ Reduces coupling between remote tiers and
provides an entry point for accessing remote
services in the business tier.
¡ A Business Delegate might also cache data as
necessary to improve performance.
¡ A Business Delegate encapsulates a Session
Façade and maintains a one-to-one relationship
with that Session Façade.
¡ You want to hide clients from the complexity of
remote communication with business service
components.
Business Delegate
Session Façade
¡ Provides coarse-grained services to the clients by
hiding the complexities of the business service
interactions.
¡ This is the same as a Façade pattern as
described in GOF Design Patterns, but just
provides an interface to a service instead of
code.
Session Façade
Composite Entity
¡ Implements a Business Object using local entity
beans and POJOs.
¡ When implemented with bean-managed
persistence, a Composite Entity uses Data Access
Objects to facilitate persistence.
¡ to avoid the drawbacks of remote entity beans,
such as network overhead and remote inter-
entity bean relationships.
Composite Entity
Transfer Object
¡ You want clients to access components in other
tiers to retrieve and update data.
¡ You want to reduce remote requests across the
network.
¡ You want to avoid network performance
degradation caused by chattier applications
that have high network traffic.
¡ Reduces network traffic
¡ Simplifies remote object and remote interface
Transfer Object
Integration Tier
Patterns
Data Access Object
¡ Enables loose coupling between the business
and resource tiers.
¡ Data Access Object encapsulates all the data
access logic to create, retrieve, delete, and
update data from a persistent store.
¡ Data Access Object uses Transfer Object to send
and receive data.
Data Access Object
Web Service Broker
¡ Exposes and brokers one or more services in your
application to external clients as a web service
using XML and standard web protocols.
¡ A Web Service Broker can interact with
Application Service and Session Façade.
¡ A Web Service Broker uses one or more Service
Activators to perform asynchronous processing of
a request.
¡ The Web Service Broker pattern exposes and
brokers services using XML and web protocols.
Web Service Broker
Question??

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

PATTERNS04 - Structural Design Patterns
PATTERNS04 - Structural Design PatternsPATTERNS04 - Structural Design Patterns
PATTERNS04 - Structural Design Patterns
 
Introduction to design patterns
Introduction to design patternsIntroduction to design patterns
Introduction to design patterns
 
Fragment
Fragment Fragment
Fragment
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Facade Pattern
Facade PatternFacade Pattern
Facade Pattern
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
 
The Singleton Pattern Presentation
The Singleton Pattern PresentationThe Singleton Pattern Presentation
The Singleton Pattern Presentation
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
 
Let us understand design pattern
Let us understand design patternLet us understand design pattern
Let us understand design pattern
 
Facade pattern
Facade patternFacade pattern
Facade pattern
 
Design Patterns
Design PatternsDesign Patterns
Design Patterns
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Bridge pattern
Bridge patternBridge pattern
Bridge pattern
 
Creational pattern
Creational patternCreational pattern
Creational pattern
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Java Course 11: Design Patterns
Java Course 11: Design PatternsJava Course 11: Design Patterns
Java Course 11: Design Patterns
 
Design pattern - Facade Pattern
Design pattern - Facade PatternDesign pattern - Facade Pattern
Design pattern - Facade Pattern
 
Object oriented modeling and design
Object oriented modeling and designObject oriented modeling and design
Object oriented modeling and design
 
Design pattern & categories
Design pattern & categoriesDesign pattern & categories
Design pattern & categories
 

Semelhante a Gof design pattern

Bartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design PatternsBartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design Patterns
Jason Townsend, MBA
 
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
Simplilearn
 
Patterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docxPatterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docx
danhaley45372
 
P Training Presentation
P Training PresentationP Training Presentation
P Training Presentation
Gaurav Tyagi
 

Semelhante a Gof design pattern (20)

Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
 
Bartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design PatternsBartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design Patterns
 
Design Patterns For 70% Of Programmers In The World
Design Patterns For 70% Of Programmers In The WorldDesign Patterns For 70% Of Programmers In The World
Design Patterns For 70% Of Programmers In The World
 
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
 
Design pattern
Design patternDesign pattern
Design pattern
 
Software design and Architecture.pptx
Software design and Architecture.pptxSoftware design and Architecture.pptx
Software design and Architecture.pptx
 
Design Pattern in Software Engineering
Design Pattern in Software Engineering Design Pattern in Software Engineering
Design Pattern in Software Engineering
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Patterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docxPatterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docx
 
J2EE pattern 5
J2EE pattern 5J2EE pattern 5
J2EE pattern 5
 
P Training Presentation
P Training PresentationP Training Presentation
P Training Presentation
 
Design patterns fast track
Design patterns fast trackDesign patterns fast track
Design patterns fast track
 
Design Pattern For C# Part 1
Design Pattern For C# Part 1Design Pattern For C# Part 1
Design Pattern For C# Part 1
 
UNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxUNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptx
 
Gang of Four in Java
Gang of Four in Java Gang of Four in Java
Gang of Four in Java
 
Introduction To Design Patterns
Introduction To Design PatternsIntroduction To Design Patterns
Introduction To Design Patterns
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Design Pattern with Actionscript
Design Pattern with ActionscriptDesign Pattern with Actionscript
Design Pattern with Actionscript
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Gof design pattern

  • 1. GOF Naveen Kumar K S Adith.Naveen@gmail.com
  • 2. Introduction ¡ Design patterns represent the best practices used by experienced object-oriented software developers. ¡ Design patterns are solutions to general problems that software developers faced during software development ¡ All Design Patterns are got based on trial and error by software engineers.
  • 3. GOF? ¡ Discussed in 1994 ¡ By Four people ¡ Erich Gamma ¡ Richard Helm ¡ Ralph Johnson ¡ John Vlissides ¡ To encourage people to go with reusable coding
  • 4. Types of Design Patterns ¡ There are 23 design patterns which can be classified in three categories: Creational, Structural and Behavioral patterns. ¡ Another design pattern J2EE will be discussed in other course
  • 5. Creational Patterns Abstract Factory Creates an instance of several families of classes Builder Separates object construction from its representation Factory Method Creates an instance of several derived classes Prototype A fully initialized instance to be copied or cloned Singleton A class of which only a single instance can exist
  • 6. Structural Patterns Adapter Match interfaces of different classes Bridge Separates an object’s interface from its implementation Composite A tree structure of simple and composite objects Decorator Add responsibilities to objects dynamically Facade A single class that represents an entire subsystem Flyweight A fine-grained instance used for efficient sharing Proxy An object representing another object
  • 7. Behavioral Patterns Chain of Resp. A way of passing a request between a chain of objects Command Encapsulate a command request as an object Interpreter A way to include language elements in a program Iterator Sequentially access the elements of a collection Mediator Defines simplified communication between classes Memento Capture and restore an object's internal state Observer A way of notifying change to a number of classes State Alter an object's behavior when its state changes Strategy Encapsulates an algorithm inside a class Template Method Defer the exact steps of an algorithm to a subclass Visitor Defines a new operation to a class without change
  • 8. Singleton ¡ Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.
  • 9. Factory Pattern ¡ Factory pattern is one of most used design pattern in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object. ¡ In Factory pattern, we create object without exposing the creation logic to the client and refer to newly created object using a common interface.
  • 10. Abstract Factory Pattern ¡ Abstract Factory patterns work around a super- factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.
  • 11. Prototype Pattern ¡ Prototype pattern refers to creating duplicate object while keeping performance in mind. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.
  • 12. Bridge Pattern ¡ Bridge is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by providing a bridge structure between them.
  • 13. Need for Bridge Pattern
  • 15. Filter Pattern ¡ Filter pattern or Criteria pattern is a design pattern that enables developers to filter a set of objects using different criteria and chaining them in a decoupled way through logical operations. This type of design pattern comes under structural pattern as this pattern combines multiple criteria to obtain single criteria.
  • 16. Decorator Pattern ¡ Decorator pattern allows a user to add new functionality to an existing object without altering its structure. This type of design pattern comes under structural pattern as this pattern acts as a wrapper to existing class.
  • 17. Façade Pattern ¡ Facade pattern hides the complexities of the system and provides an interface to the client using which the client can access the system. This type of design pattern comes under structural pattern as this pattern adds an interface to existing system to hide its complexities.
  • 18. Observer Pattern ¡ Observer pattern is used when there is one-to- many relationship between objects such as if one object is modified, its dependent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.
  • 19. Delegate Pattern ¡ Business Delegate Pattern is used to decouple presentation tier and business tier. It is basically use to reduce communication or remote lookup functionality to business tier code in presentation tier code. In business tier we have following entities.
  • 22. J2EE Patterns ¡ Presentation Tier Patterns ¡ Business Tier Patterns ¡ Integration Tier Patterns
  • 23. Intercepting Filter ¡ intercepts incoming requests and outgoing responses and applies a filter. ¡ These filters may be added and removed in a declarative manner ¡ For an incoming request, this is often a Front Controller
  • 25. Front Controller ¡ Is a container to hold the common processing logic that occurs within the presentation tier ¡ A controller handles requests and manages content retrieval, security, view management, and navigation, delegating to a Dispatcher component to dispatch to a View. ¡ The Front Controller pattern creates central control logic for presentation request handling.
  • 27. Dispatcher View ¡ Combines a controller and dispatcher with views and helpers to handle client requests and prepare a dynamic presentation as the response. ¡ A dispatcher is responsible for view management and navigation and can be encapsulated either within a controller, a view, or a separate component. ¡ The Dispatcher View pattern handles the request and generates a response while managing limited business processing.
  • 30. Business Delegate ¡ Reduces coupling between remote tiers and provides an entry point for accessing remote services in the business tier. ¡ A Business Delegate might also cache data as necessary to improve performance. ¡ A Business Delegate encapsulates a Session Façade and maintains a one-to-one relationship with that Session Façade. ¡ You want to hide clients from the complexity of remote communication with business service components.
  • 32. Session Façade ¡ Provides coarse-grained services to the clients by hiding the complexities of the business service interactions. ¡ This is the same as a Façade pattern as described in GOF Design Patterns, but just provides an interface to a service instead of code.
  • 34. Composite Entity ¡ Implements a Business Object using local entity beans and POJOs. ¡ When implemented with bean-managed persistence, a Composite Entity uses Data Access Objects to facilitate persistence. ¡ to avoid the drawbacks of remote entity beans, such as network overhead and remote inter- entity bean relationships.
  • 36. Transfer Object ¡ You want clients to access components in other tiers to retrieve and update data. ¡ You want to reduce remote requests across the network. ¡ You want to avoid network performance degradation caused by chattier applications that have high network traffic. ¡ Reduces network traffic ¡ Simplifies remote object and remote interface
  • 39. Data Access Object ¡ Enables loose coupling between the business and resource tiers. ¡ Data Access Object encapsulates all the data access logic to create, retrieve, delete, and update data from a persistent store. ¡ Data Access Object uses Transfer Object to send and receive data.
  • 41. Web Service Broker ¡ Exposes and brokers one or more services in your application to external clients as a web service using XML and standard web protocols. ¡ A Web Service Broker can interact with Application Service and Session Façade. ¡ A Web Service Broker uses one or more Service Activators to perform asynchronous processing of a request. ¡ The Web Service Broker pattern exposes and brokers services using XML and web protocols.