Jean-Christophe Kermagoret > BabelObjects > BabelObjects::Runner::Dispatcher

Download:
BabelObjects-1.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.00   Source  

NAME ^

BabelObjects::Runner::Dispatcher - parses the file and substitutes BO tags.

SYNOPSIS ^

  use BabelObjects::Runner::Dispatcher;

DESCRIPTION ^

Dispatcher parses the file and substitutes all Babel Objects tags by their value. Tags are of the form : $(aClass.aMethod).

The file is parsed within a web or no web context. When a BO tag is encountered, the dispatcher looks in the classes.xml file for an element called aClass. If it finds one, it takes the real class name, loads it and calls the aMethod on it :

   <classes>
      <parameter>
         <bookmark>BabelObjects::Component::Directory::Bookmark</bookmark>
      </parameter>
      <parameter>
         <test>BabelObjects::Component::Test::BabelObjects::Test</test>
      </parameter>
  <classes>

Then the result is written on the http output in a web context, or the standart output in a no web context.

AUTHOR ^

Jean-Christophe Kermagoret, jck@BabelObjects.Org (http://www.BabelObjects.Org)

SEE ALSO ^

perl(1).

syntax highlighting: