Oak::Application - Class for creating applications in Oak
This is the class that will be used to create real applications, the executable file will launch it.
When you create an application object, a reference is created as $::APPLICATION. If you want to undef the Oak::Application object by hand, you need to undef it also.
If the persistent param is defined, the object will not be deleted and recreated every itaration of the application. This is usefull for Oak::DataModule components.
initiateTopLevel(NAME)
The exceptions generated by Oak::Component wont be treated here, so, they will propagate to the first level.
Exceptions generated by Oak::Application Oak::Application::Error::DuplicatedTopLevel - toplevel components have the same name
Oak::Application::Error::ClassNotFound - toplevel class not found in lib
The following exceptions are introduced by Oak::Application
my $app = new Oak::Application ( "formCreate" => ["MyApp::TopLevel1", "TopLevel1.xml"], "formList" => ["MyApp::TopLevel2", "TopLevel2.xml"], "formSearch" => ["MyApp::TopLevel3", "TopLevel3.xml"], "default" => "formCreate" );
$app->run; # abstract in Oak::Application
Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.