NAME

Apache::SiteControl::ManagerFactory - An abstract base class to use as a pattern for custom PermissionManager production.

DESCRIPTION

This package is a simple abstract base class. Use it as the base for creating your instances of permission managers. For example,

package MyManagerFactory;

use strict; use Apache::SiteControl::ManagerFactory;

use base qw(Apache::SiteControl::ManagerFactory);

our $manager;

sub getPermissionManager { return $manager if(defined($manager) && $manager->isa(Apache::SiteControl::ManagerFactory));

$manager = new Apache::SiteControl::PermissionManager;

$manager->addRule(new XYZRule);
$manager->addRule(new SomeOtherRule);

return $manager;
}

1;

SEE ALSO

Apache::SiteControl::PermissionManager, Apache::SiteControl::Rule

AUTHOR

This module was written by Tony Kay, <tkay@uoregon.edu>.

COPYRIGHT AND LICENSE