💼 ABAP PACT DIFFICULTY: Adept Structural

Flyweight in ABAP

Enterprise pact magic using the Flyweight pattern.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Flyweight
ARCANUM SCHOOL: Corporate // Enterprise Runes
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ABAP PATTERN //
CLASS lcl_flyweight_factory DEFINITION.
  PUBLIC SECTION.
    METHODS get_flyweight IMPORTING iv_key TYPE string RETURNING VALUE(ro_fw) TYPE REF TO object.
ENDCLASS.
CLASS lcl_flyweight_factory IMPLEMENTATION.
  METHOD get_flyweight.
    " Return shared entity
  ENDMETHOD.
ENDCLASS.

Flyweight

The Flyweight pattern binds the volatile entities of the ABAP runtime into a highly structured enterprise pact, ensuring safe transaction execution within the vast corporate core.

Runic Tags: #abap #flyweight #enterprise #magic