- From a list, select the most appropriate design pattern for a given scenario. Patterns will be limited to those documented in Gamma et al. and named using the names given in that book.
- State the benefits of using design patterns.
- State the name of a design pattern (for example, Gamma) given the UML diagram and/or a brief description of the pattern's functionality.
- Select from a list benefits of a specified design pattern (for example, Gamma).
- Identify the design pattern associated with a specified J2EE feature
Benefits: Proven solutions, promote reusability, Expressive.
GOF patterns Creation
- Abstract Factory - Allows a client to create families of objects without knowing their concrete classes.
- Factory Method - Subclasses decide which concrete classess to create.
- Singleton - Ensures one and only object is created.
- Chain of Responsiblity
- Command - Encapsulates a request as an object.
- Observer - Allows objects to be notified when state changes.
- State - Encapsulate state based behaviour and use delegation to switch between behaviour.
- Strategy - Encapsulates interchangeable behaviour and used delegation to decide which ones to use.
- Template Method - Subclasses decide how to implement steps in an algorithm.
- Adapter - Wraps an object and provides an interface to it.
- Composite - Client treats collection of objects and individual objects uniformly.
- Decorator - Wraps an object to provide new behaviour.
- Proxy - Wraps an object to control access to it.
|EJB Home|| |
|EJB Remote|| |
|Session beans that model workflow|| |
|EJB instance pooling|| |
|Value object|| |
|JDBC Resultset|| |
|JDBC, JMS, JCA, or any bridging technology|| |
|Servlet filters|| |
Need to know all patterns, able to differential between the similiar and identify them from givem UML diagrams.
Books used HeadFirstPatterns/ Developer works/ MarkCade's SCEA.