Practical mod_perl / HTML Book /



previous page: B.11.1. Apache::Registry and Apache::PerlRun
  
page up: HTML Version of the book
  
next page: B.11.3. Apache::RegistryBB—Apache::Registry Bare Bones

B.11.2. Apache::RegistryNG—Apache::Registry New Generation


Apache::RegistryNG is almost the same as Apache::Registry, except that it uses filenames instead of URIs for namespaces. It also uses an object-oriented interface.

PerlModule Apache::RegistryNG
<Location /perl>
  SetHandler perl-script
  PerlHandler Apache::RegistryNG->handler
</Location>

The usage is just the same as Apache::Registry.

Apache::RegistryNG inherits from Apache::PerlRun, but the handler( ) is overriden. Apart from the handler( ), the rest of Apache::PerlRun contains all the functionality of Apache::Registry, broken down into several subclassable methods. These methods are used by Apache::RegistryNG to implement the exact same functionality as Apache::Registry, using the Apache::PerlRun methods.

There is no compelling reason to use Apache::RegistryNG over Apache::Registry, unless you want to add to or change the functionality of the existing Registry.pm. For example, Apache::RegistryBB is another subclass that skips the stat( ) call, Option +ExecCGI, and other checks performed by Apache::Registry on each request.

Supplied with the mod_perl distribution. See the module manpage for more information.

 

Continue to:

  • prev: B.11.1. Apache::Registry and Apache::PerlRun
  • Table of Contents
  • next: B.11.3. Apache::RegistryBB—Apache::Registry Bare Bones







TOP
previous page: B.11.1. Apache::Registry and Apache::PerlRun
  
page up: HTML Version of the book
  
next page: B.11.3. Apache::RegistryBB&#8212;Apache::Registry Bare Bones


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com