background preloader

Java

Facebook Twitter

Mobile

Performance. j2ee. Rulesengine. JScience. Java Design Patterns. Benefits of Design Patterns Improves communication between designers by use of pattern names vs. the details of the patterns. Captures experience of solving a type of problem. Provide a way of reusing design. Provide a mechanism for making designs more reusable. Provides a mechanism for systematizing the reuse of things that have been seen before. Can be used to teach good design. Design Patterns Creational Factory Method Abstract Factory Singleton Builder Prototype Structural Adapter Bridge Composite Decorator Facade Flyweight Proxy Behavioral Chain of Responsibility Command Interpreter Iterator Mediator Momento Observer State Strategy Template Method Visitor 1. Creational: Involved with the process of object creation. 1. 1. Define an interface for creating an object, but let subclasses decide which class to instantiate. Applicability: A class cant anticipate which kind of class of objects it must create.

A class uses its subclasses to specify which objects it creates. Consequences: Use in J2EE: 1.2. Benefits: 1.3. 1.4. 2. Java theory and practice: Understanding JTS -- The magic behind.