The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

MODULE FACTORY

Introduction to ModuleFactory and AdaptorFactory

Overview

ModuleFactory has the knowledge of Schema.

For ModuleFactory::make_virtual_module and AdaptorFactory::make_object_adaptor, they generate the module according to the type in schema, and return the generated module's name.

 make_object_adaptor        -- a module
 _make_only_fetch_method    -- method(s)

Code Example

 sub make_module {
     my ($self, $type)=@_;

 sub make_method {
     my ($self, $model)=@_;
     my ($self, $val)=@_;