OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

p5-Class-Factory-1.06p0

automates the Factory design pattern

Back to search · Project homepage

Description

Class::Factory - Base class for dynamic factory classes package My::Factory; use strict; use base qw( Class::Factory ); # Add our default types My::Factory->add_factory_type( perl => 'My::Factory::Perl' ); My::Factory->add_factory_type( blech => 'My::Factory::Blech' ); 1; # Create new objects using the default types my $perl_item = My::Factory->new( 'perl', foo => 'bar' ); my $blech_item = My::Factory->new( 'blech', foo => 'baz' );

Package information

Ports path
devel/p5-Class-Factory
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Installing and updating packages · Package details as JSON