Suche senden
Hochladen
Abstract Factory Pattern
•
0 gefällt mir
•
363 views
Geoff Burns
Folgen
Presentation given at Melbourne Patterns Group (Sept 2005) http://htxt.it/ovLs
Weniger lesen
Mehr lesen
Melden
Teilen
Melden
Teilen
1 von 12
Empfohlen
Presented by Geoff Burns at the Feb 2009 meeting of the Melbourne Patterns Group.
Factory Method Design Pattern
Factory Method Design Pattern
melbournepatterns
heart health monitoring system
Pptsdd ak
Pptsdd ak
Apurva Kini
Hugtakið hugbúnaðararkítektúr er yfirhlaðið orð og þýðir mismunandi hluti fyrir mismunandi fólk. Við ætlum í þessum fyrirlestri að skilgreina ýmis hugtök tengd arkítektúr til að fá betri skilning á þessu. Við munum einnig skilgreina hvað agile arkítektúr þýðir eða hvað það þýðir ekki. Þá skoðum við monolith arkítektúr sem er hinn hefðbundi arkítektúr sem flestir nota í dag. Vandinn er sá að í dag eru kröfurnar meiri en þessi arkítektúr ræður við og því hafa menn verið að skoða aðrar leiðir eins og lightweight Service Oriented Architecture og hvernig smíða má hugbúnað sem þjónustur eða microapps eða microservice. Við skoðum einnig lagskiptingu en það er elsta trikkið í bókinni og byggir á deila og drottna aðferðinni.
L02 Architecture
L02 Architecture
Ólafur Andri Ragnarsson
GRDDL: A Pictorial Approach
GRDDL: A Pictorial Approach
Chimezie Ogbuji
Object Oriented Programming is revisited. It is assumed that students know OO languages so this is more of a review. We will cover concepts such as encapsulation, interfaces and polymorphism. These are important concepts that students must understand in order to write flexible and lasting code. We look at several design principles. We also look at software design and take an example from a video games. In this lecture we will also reveal the secret of programming which all good programmers must know.
L02 Software Design
L02 Software Design
Ólafur Andri Ragnarsson
Software Engineering
Chapter 5 software_design
Chapter 5 software_design
Prassonu
ppt of class and methods in java,recursion in java,nested class,java,command line argument,method overloading,call by value,call by reference,constructor overloading core java ppt
Class method
Class method
kamal kotecha
Sw Software Design
Sw Software Design
jonathan077070
Empfohlen
Presented by Geoff Burns at the Feb 2009 meeting of the Melbourne Patterns Group.
Factory Method Design Pattern
Factory Method Design Pattern
melbournepatterns
heart health monitoring system
Pptsdd ak
Pptsdd ak
Apurva Kini
Hugtakið hugbúnaðararkítektúr er yfirhlaðið orð og þýðir mismunandi hluti fyrir mismunandi fólk. Við ætlum í þessum fyrirlestri að skilgreina ýmis hugtök tengd arkítektúr til að fá betri skilning á þessu. Við munum einnig skilgreina hvað agile arkítektúr þýðir eða hvað það þýðir ekki. Þá skoðum við monolith arkítektúr sem er hinn hefðbundi arkítektúr sem flestir nota í dag. Vandinn er sá að í dag eru kröfurnar meiri en þessi arkítektúr ræður við og því hafa menn verið að skoða aðrar leiðir eins og lightweight Service Oriented Architecture og hvernig smíða má hugbúnað sem þjónustur eða microapps eða microservice. Við skoðum einnig lagskiptingu en það er elsta trikkið í bókinni og byggir á deila og drottna aðferðinni.
L02 Architecture
L02 Architecture
Ólafur Andri Ragnarsson
GRDDL: A Pictorial Approach
GRDDL: A Pictorial Approach
Chimezie Ogbuji
Object Oriented Programming is revisited. It is assumed that students know OO languages so this is more of a review. We will cover concepts such as encapsulation, interfaces and polymorphism. These are important concepts that students must understand in order to write flexible and lasting code. We look at several design principles. We also look at software design and take an example from a video games. In this lecture we will also reveal the secret of programming which all good programmers must know.
L02 Software Design
L02 Software Design
Ólafur Andri Ragnarsson
Software Engineering
Chapter 5 software_design
Chapter 5 software_design
Prassonu
ppt of class and methods in java,recursion in java,nested class,java,command line argument,method overloading,call by value,call by reference,constructor overloading core java ppt
Class method
Class method
kamal kotecha
Sw Software Design
Sw Software Design
jonathan077070
What are Software Patterns
Software Patterns
Software Patterns
bonej010
Presentation given on Jun 2007 at Symbion Health and on Feb 2009 at Melbourne Patterns Group http://htxt.it/UXZe
Factory Method Pattern
Factory Method Pattern
Geoff Burns
Presentation given on Aug 2006 at Symbion Health and on Jun 2007 at Melbourne Patterns Group
Factory Method Pattern
Factory Method Pattern
guestcb0002
design patterns
Unit 2-Design Patterns.ppt
Unit 2-Design Patterns.ppt
MsRAMYACSE
software design and architecture
Sda 8
Sda 8
AmberMughal5
Gof design patterns
Gof design patterns
Srikanth R Vaka
presentation on some creational design patterns namely the factory method and the abstract factory
Code Like a Ninja Session 7 - Creational Design Patterns
Code Like a Ninja Session 7 - Creational Design Patterns
Deon Meyer
Explains some commonly used design patterns in JavaScript
Design pattern
Design pattern
Shreyance Jain
Layers of Smalltalk Application
Layers of Smalltalk Application
speludner
A presentation of facade pattern which comes object oriented analysis and design. Includes references, implementation examples and diagrams.
Facade pattern presentation(.pptx)
Facade pattern presentation(.pptx)
VishalChavan83
Typescript design patterns applied to sharepoint framework - Sharepoint Satursday Madrid
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Luis Valencia
Introductions to and considerations for adopting test driven development
Testing the untestable
Testing the untestable
RoyKlein
How effective is modularization
How effective is modularization
SyedArsal
Patterns (contd) Software Development Process Design patterns used to handle change More time extending and changing code than developing it. The Strategy design pattern handle change by selecting from a family of external algorithms rather than rewrite. Design point: Make code closed for modification of code, but open for extension Problem Computer object created Description Method returns Getting a Computer Problem Program has to change every time Customer changes options Decorator Pattern Wrapper code used to extend your core code Extend a class dynamically at runtime Decorator uses wrapper code to extend core functionality - decorating the code Decorator Pattern description() returns “You are getting a computer” Wrapper description() returns “You are getting a computer and a disk” Wrapper description() returns “You are getting a computer and a disk and a monitor” Decorator Pattern Core component: Computer Variables holding computer objects should also be able to hold objects that wrap computer objects. Extend the wrapper classes from the Computer class. Abstract class cannot be instantiated Ensures all wrappers are consistent Developers have to provide their own description Decorator Pattern Method calls the core computer object’s description method and adds “and a disk” Decorator Pattern Method calls the core computer object’s description method and adds “and a disk” Extend the core object by wrapping it in decorator wrappers. Avoids modification of the core code. Each successive wrapper called the description method of the object it wrapped and added something to it. Factory Pattern Based on type, call the Connection method Factory Pattern Create a method that returns the correct connection type Factory Pattern New operator used to create OracleConnection objects. New operator used to create SqlServerConnection objects, and MySqlConnection objects. New operator to instantiate many different concrete classes Code becomes larger and needs to be replicated in many places Factor that code out into a method. Code keeps changing Encapsulate code into a factory object Goal: Separate out the changeable code and leave the core code closed for modification Building the Factory Creating the Factory FirstFactory class encapsulates the connection object creation Pass to it the type of connection (“Oracle”, “SQL Server”,) Use the factory object to create connection objects with a factory method named createConnection Building the Factory Create the FirstFactory class. Save the type of the database, passed to the FirstFactory class’s constructor. Object-creation code changes Check which type of object to be created (OracleConnection, SqlServerConnection, and then create it. Factory Class Create the Abstract Connection Class Core code should not be modified or has to be modified as little as possible. Using the connection object returned by the new factory object Use t.
Patterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docx
danhaley45372
This session covers details on What is a design pattern, Why Design pattern, When to use design pattern, Types of Design Pattern....etc.
Let us understand design pattern
Let us understand design pattern
Mindfire Solutions
Bartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design Patterns
Jason Townsend, MBA
A presentation about what makes your code comfortable to work with.
Comfortable code
Comfortable code
Remus Langu
Design Patterns
Design Patterns
Rafael Coutinho
Design patterns provide common templates for solving similar problems. They also provide a higher-level language for software developers to use to describe approaches they might choose when designing part of an application. This session introduces and applies several patterns useful to web application developers. Examples will primarily use C#/.NET.
Most Useful Design Patterns
Most Useful Design Patterns
Steven Smith
An overview of several design patterns that are useful when developing ASP.NET applications.
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Steven Smith
Weitere ähnliche Inhalte
Ähnlich wie Abstract Factory Pattern
What are Software Patterns
Software Patterns
Software Patterns
bonej010
Presentation given on Jun 2007 at Symbion Health and on Feb 2009 at Melbourne Patterns Group http://htxt.it/UXZe
Factory Method Pattern
Factory Method Pattern
Geoff Burns
Presentation given on Aug 2006 at Symbion Health and on Jun 2007 at Melbourne Patterns Group
Factory Method Pattern
Factory Method Pattern
guestcb0002
design patterns
Unit 2-Design Patterns.ppt
Unit 2-Design Patterns.ppt
MsRAMYACSE
software design and architecture
Sda 8
Sda 8
AmberMughal5
Gof design patterns
Gof design patterns
Srikanth R Vaka
presentation on some creational design patterns namely the factory method and the abstract factory
Code Like a Ninja Session 7 - Creational Design Patterns
Code Like a Ninja Session 7 - Creational Design Patterns
Deon Meyer
Explains some commonly used design patterns in JavaScript
Design pattern
Design pattern
Shreyance Jain
Layers of Smalltalk Application
Layers of Smalltalk Application
speludner
A presentation of facade pattern which comes object oriented analysis and design. Includes references, implementation examples and diagrams.
Facade pattern presentation(.pptx)
Facade pattern presentation(.pptx)
VishalChavan83
Typescript design patterns applied to sharepoint framework - Sharepoint Satursday Madrid
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Luis Valencia
Introductions to and considerations for adopting test driven development
Testing the untestable
Testing the untestable
RoyKlein
How effective is modularization
How effective is modularization
SyedArsal
Patterns (contd) Software Development Process Design patterns used to handle change More time extending and changing code than developing it. The Strategy design pattern handle change by selecting from a family of external algorithms rather than rewrite. Design point: Make code closed for modification of code, but open for extension Problem Computer object created Description Method returns Getting a Computer Problem Program has to change every time Customer changes options Decorator Pattern Wrapper code used to extend your core code Extend a class dynamically at runtime Decorator uses wrapper code to extend core functionality - decorating the code Decorator Pattern description() returns “You are getting a computer” Wrapper description() returns “You are getting a computer and a disk” Wrapper description() returns “You are getting a computer and a disk and a monitor” Decorator Pattern Core component: Computer Variables holding computer objects should also be able to hold objects that wrap computer objects. Extend the wrapper classes from the Computer class. Abstract class cannot be instantiated Ensures all wrappers are consistent Developers have to provide their own description Decorator Pattern Method calls the core computer object’s description method and adds “and a disk” Decorator Pattern Method calls the core computer object’s description method and adds “and a disk” Extend the core object by wrapping it in decorator wrappers. Avoids modification of the core code. Each successive wrapper called the description method of the object it wrapped and added something to it. Factory Pattern Based on type, call the Connection method Factory Pattern Create a method that returns the correct connection type Factory Pattern New operator used to create OracleConnection objects. New operator used to create SqlServerConnection objects, and MySqlConnection objects. New operator to instantiate many different concrete classes Code becomes larger and needs to be replicated in many places Factor that code out into a method. Code keeps changing Encapsulate code into a factory object Goal: Separate out the changeable code and leave the core code closed for modification Building the Factory Creating the Factory FirstFactory class encapsulates the connection object creation Pass to it the type of connection (“Oracle”, “SQL Server”,) Use the factory object to create connection objects with a factory method named createConnection Building the Factory Create the FirstFactory class. Save the type of the database, passed to the FirstFactory class’s constructor. Object-creation code changes Check which type of object to be created (OracleConnection, SqlServerConnection, and then create it. Factory Class Create the Abstract Connection Class Core code should not be modified or has to be modified as little as possible. Using the connection object returned by the new factory object Use t.
Patterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docx
danhaley45372
This session covers details on What is a design pattern, Why Design pattern, When to use design pattern, Types of Design Pattern....etc.
Let us understand design pattern
Let us understand design pattern
Mindfire Solutions
Bartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design Patterns
Jason Townsend, MBA
A presentation about what makes your code comfortable to work with.
Comfortable code
Comfortable code
Remus Langu
Design Patterns
Design Patterns
Rafael Coutinho
Design patterns provide common templates for solving similar problems. They also provide a higher-level language for software developers to use to describe approaches they might choose when designing part of an application. This session introduces and applies several patterns useful to web application developers. Examples will primarily use C#/.NET.
Most Useful Design Patterns
Most Useful Design Patterns
Steven Smith
An overview of several design patterns that are useful when developing ASP.NET applications.
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Steven Smith
Ähnlich wie Abstract Factory Pattern
(20)
Software Patterns
Software Patterns
Factory Method Pattern
Factory Method Pattern
Factory Method Pattern
Factory Method Pattern
Unit 2-Design Patterns.ppt
Unit 2-Design Patterns.ppt
Sda 8
Sda 8
Gof design patterns
Gof design patterns
Code Like a Ninja Session 7 - Creational Design Patterns
Code Like a Ninja Session 7 - Creational Design Patterns
Design pattern
Design pattern
Layers of Smalltalk Application
Layers of Smalltalk Application
Facade pattern presentation(.pptx)
Facade pattern presentation(.pptx)
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Testing the untestable
Testing the untestable
How effective is modularization
How effective is modularization
Patterns (contd)Software Development ProcessDesign patte.docx
Patterns (contd)Software Development ProcessDesign patte.docx
Let us understand design pattern
Let us understand design pattern
Bartlesville Dot Net User Group Design Patterns
Bartlesville Dot Net User Group Design Patterns
Comfortable code
Comfortable code
Design Patterns
Design Patterns
Most Useful Design Patterns
Most Useful Design Patterns
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Common ASP.NET Design Patterns - Telerik India DevCon 2013
Abstract Factory Pattern
1.
Abstract Factory Pattern
Provide an interface for creating families of related or dependent objects without specifying their concrete classes
2.
3.
4.
5.
6.
Abstract Factory using
Factory Method
7.
8.
Pluggable Factory John
Vlissides C++ Report, February 1999
9.
10.
11.
Extensible Factories Timothy
R. Culp C++ Report, October 1999
12.