Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Java Design Patterns
    Acyclic Visitor Pattern in Java: Streamlining Object Interactions

    Intent of Acyclic Visitor Design Pattern

    The Acyclic Visitor pattern in Java decouples operations from an object hierarchy, providing a flexible design for various applications.

    Detailed Explanation of Acyclic Visitor Pattern with Real-World Examples

    Real-world example


    iluwatarAbout 3 minBehavioralDecouplingExtensibilityInterfaceObject composition
    Adapter Pattern in Java: Seamless Integration of Incompatible Systems

    Also known as

    • Wrapper

    Intent of Adapter Design Pattern

    The Adapter Design Pattern in Java converts the interface of a class into another interface that clients expect, enabling compatibility.

    Detailed Explanation of Adapter Pattern with Real-World Examples


    iluwatarAbout 3 minStructuralCompatibilityDecouplingGang of FourInterfaceObject compositionWrapping
    Bridge Pattern in Java: Decouple Abstraction from Implementation

    Also known as

    • Handle/Body

    Intent of Bridge Design Pattern

    The Bridge design pattern is a structural pattern in Java that decouples an abstraction from its implementation, allowing both to vary independently. This pattern is essential for developing flexible and extensible software systems.


    iluwatarAbout 4 minStructuralAbstractionDecouplingExtensibilityGang of FourObject composition
    Builder Pattern in Java: Crafting Custom Objects with Clarity

    Intent of Builder Design Pattern

    The Builder design pattern in Java, a fundamental creational pattern, allows for the step-by-step construction of complex objects. It separates the construction of a complex object from its representation so that the same construction process can create different representations.


    iluwatarAbout 4 minCreationalGang of FourInstantiationObject composition
    Composite Entity Pattern in Java: Streamlining Persistent Object Management

    Also known as

    • Coarse-Grained Entity

    Intent of Composite Entity Design Pattern

    The Composite Entity design pattern in Java is aimed at managing a set of interrelated persistent objects as if they were a single entity. It is commonly used in enterprise applications, particularly within the context of Enterprise JavaBeans (EJB) and similar enterprise frameworks, to represent graph-based data structures within business models. This pattern enables clients to treat these complex structures as a single unit, simplifying operations and interactions.


    iluwatarAbout 3 minStructuralClient-serverData accessDecouplingEnterprise patternsObject compositionPersistenceResource management
    Composite View Pattern in Java: Enhancing UI Consistency Across Applications

    Intent of Composite View Design Pattern

    The primary goal of the Composite View design pattern is to compose objects into tree structures to represent part-whole hierarchies. This allows clients to treat individual objects and compositions of objects uniformly, simplifying the management of complex hierarchical views.


    iluwatarAbout 5 minStructuralAbstractionEnterprise patternsObject compositionPresentation
    Composite Pattern in Java: Building Flexible Tree Structures

    Also known as

    • Object Tree
    • Composite Structure

    Intent of Composite Design Pattern

    Compose objects into tree structures to represent part-whole hierarchies. The Composite Design Pattern lets clients treat individual objects and compositions of objects uniformly.


    iluwatarAbout 3 minStructuralDecouplingGang of FourObject compositionRecursion
    Decorator Pattern in Java: Extending Classes Dynamically

    Also known as

    • Smart Proxy
    • Wrapper

    Intent of Decorator Design Pattern

    The Decorator pattern allows for the dynamic addition of responsibilities to objects without modifying their existing code. It achieves this by providing a way to "wrap" objects within objects of similar interface, enhancing Java design patterns flexibility.


    iluwatarAbout 4 minStructuralEnhancementExtensibilityGang of FourObject compositionWrapping
    Delegation Pattern in Java: Mastering Efficient Task Assignment

    Also known as

    • Helper
    • Surrogate

    Intent of Delegation Design Pattern

    To allow an object to delegate responsibility for a task to another helper object.

    Detailed Explanation of Delegation Pattern with Real-World Examples

    Real-world example


    iluwatarAbout 2 minBehavioralDecouplingDelegationObject composition
    Extension Objects Pattern in Java: Enhancing Object Functionality Flexibly

    Also known as

    • Interface Extensions

    Intent of Extension Objects Design Pattern

    The Extension Objects pattern allows for the flexible extension of an object's behavior without modifying its structure, by attaching additional objects that can dynamically add new functionality.


    iluwatarAbout 3 minStructuralEncapsulationExtensibilityObject compositionPolymorphism
    Blogger Avatar
    iluwatar
    179Articles

    No Star

    [8]ページ先頭

    ©2009-2025 Movatter.jp