NAME

Rui::Application::Map - map from application names to application classes


SYNOPSYS

  use Rui::Application::Map;
  $applicationMap = Rui::Application::Map->new;
  $className1 = $applicationMap->getApplicationClassName('DEFAULT');
  $className2 = $applicationMap->getApplicationClassName('WidgetExample');


DESCRIPTION

The actual mapping is configured from a file at $Rui::PROJECT_HOME/conf/applications.cfg. If the current project is not the base project, then the base mapping is added to the current project mapping.

Sessions use this class to find the application class of an application name, using the method getApplicationClassName().


CONFIGURATION

The configuration file defines a mapping per line. Each mapping consists of an application name (users boot applications by name) and a corresponding application class. Any number of space characters seperate the two. DEFAULT is a special application name used when none is given by the client. For example here is an applications.cfg file that defines 2 applications and a default application:

  DEFAULT  MyProject::Application::Foo
  Foo      MyProject::Application::Foo
  Bar      MyProject::Application::Bar