books
Free Books / Computers / Practical mod_perl /

previous page: B.11.1. Apache::Registry and Apache::PerlRun
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.11.3. Apache::RegistryBB—Apache::Registry Bare Bones

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




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

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

Books by Stas Bekman:















TOP
previous page: B.11.1. Apache::Registry and Apache::PerlRun
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.11.3. Apache::RegistryBB&#8212;Apache::Registry Bare Bones

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

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

© 2007-2021 StasoSphere.com