Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members

Application development with the Razor! framework

The Hollywood principle applies

As has been explained in section The nature of a Framework, the behavior of an application which is based on a framework is defined by the code which you provide to the framework for invocation during program execution. This fully applies to the Razor! framework. The entire main application, including the startup code, the event loop, all the decisions about control flow, are provided by the Razor! framework. The framework will make calls into code which you will have to provide. You will have to present your code to the framework as a class which inherits from the ActionEngine class that is defined by the framework. ActionEngine defines all the hotspots that will be invoked by the framework. You are of course free to split up the functionality of your application into as many classes as you like, but you will always have to provide an ActionEngine as the main entry point into your code.

Required steps

In order to develop a new application with Razor!, you will need to

Sample code

Look at the class DemoActionEngine for a working example of an ActionEngine.


Razor! Engine Developer's Guide. Copyright © by Tilo Christ. All Rights Reserved. Last updated: 17 Dec 2000