Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libclass-adapter-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libclass-adapter-perl  ]

套件: libclass-adapter-perl (1.07-1)

Perl implementation of the "Adapter" Design Pattern

The Class::Adapter class is intended as an abstract base class for creating any sort of class or object that follows the Adapter pattern.

The term Adapter refers to a "Design Pattern" of the same name, from the famous "Gang of Four" book "Design Patterns". Although their original implementation was designed for Java and similar single-inheritance strictly-typed langauge, the situation for which it applies is still valid.

An Adapter in this Perl sense of the term is when a class is created to achieve by composition (objects containing other object) something that can't be achieved by inheritance (sub-classing).

This is similar to the Decorator pattern, but is intended to be applied on a class-by-class basis, as opposed to being able to be applied one object at a time, as is the case with the Decorator pattern.

其他與 libclass-adapter-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libclass-adapter-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 21.3 kB96 kB [文件列表]