Apache2-Dispatch
view release on metacpan or search on metacpan
lib/Apache/Dispatch.pm view on Meta::CPAN
else {
$log->debug("\t$class required successfully") if $debug > 1;
}
}
#---------------------------------------------------------------------
# reload the module if DispatchStat On or ISA
#---------------------------------------------------------------------
if ($stat eq "ON") {
$rc = __PACKGE__->_stat($class, $log, $debug);
unless ($rc) {
$log->error("\tDispatchStat did not return successfully!");
$log->debug("Exiting Apache::Dispatch") if $debug;
return DECLINED;
}
}
elsif ($stat eq "ISA") {
$rc = __PACKAGE__->_recurse_stat($class, $log, $debug);
unless ($rc) {
$log->error("\tDispatchStat did not return successfully!");
$log->debug("Exiting Apache::Dispatch") if $debug;
return DECLINED;
}
}
#---------------------------------------------------------------------
# see if the handler is a valid method
lib/Apache/Dispatch/Util.pm view on Meta::CPAN
sub _recurse_stat {
#---------------------------------------------------------------------
# recurse through all the parent classes of the current class
# and call _stat on each
# this method is for internal use only
#---------------------------------------------------------------------
my ($class, $log) = @_;
my $rc = _stat($class, $log);
return unless $rc;
# turn off strict here so we can get at the class @ISA
no strict 'refs';
foreach my $package (@{"${class}::ISA"}) {
$rc = _recurse_stat($package, $log);
last unless $rc;
}
return $rc;
}
sub _set_ISA {
#---------------------------------------------------------------------
# set the ISA array for the class
lib/Apache2/Dispatch.pm view on Meta::CPAN
else {
$log->debug("\t$class required successfully") if $debug > 1;
}
}
#---------------------------------------------------------------------
# reload the module if DispatchStat On or ISA
#---------------------------------------------------------------------
if ($stat eq "ON") {
$rc = __PACKAGE__->_stat($class, $log);
unless ($rc) {
$log->error("\tDispatchStat did not return successfully!");
$log->debug("Exiting Apache2::Dispatch") if $debug;
return Apache2::Const::DECLINED;
}
}
elsif ($stat eq "ISA") {
$rc = __PACKAGE__->_recurse_stat($class, $log);
unless ($rc) {
$log->error("\tDispatchStat did not return successfully!");
$log->debug("Exiting Apache2::Dispatch") if $debug;
return Apache2::Const::DECLINED;
}
}
#---------------------------------------------------------------------
# see if the handler is a valid method
( run in 0.979 second using v1.01-cache-2.11-cpan-49f99fa48dc )