SWE 302-lect06- Part II- Example
SWE 302-lect06- Part II- Example
Creational
Structural
Behavioral
Facade
Subsystem classes
Façade
• knows which subsystem classes are responsible
for a request.
• delegates client requests to appropriate subsystem
objects.
subsystem classes
• implement subsystem functionality.
• handle work assigned by the Facade object.
• have no knowledge of the facade; that is, they keep
no references to it.
**/
* Test driver for the pattern.
/*
public class Test {
public static void main( String arg[] ) {
Facade facade = new Facade();
facade.go();
{
{
Abstract Factory.
Mediator
Singletons.
In order to completes
his task, client should
accesses many
operations in different
classes within the
subsystem.