The ui-factory-class Element

From Documentation
Revision as of 15:35, 4 December 2010 by Tomyeh (talk | contribs)


The ui-factory-class Element


Syntax:

<ui-factory-class>a_class_name</ui-factory-class>
[Default: SimpleUiFactory]

It specifies which class used to create desktops and pages, and to convert URL to a page definition. The class must have a default constructor (without any argument), and implement the UiFactory interface.

One instance of the UI factory is created and shared for each Web application, so you have to synchronize the access properly.

A common use is to load page definitions and other UI information from the database, rather than from the resources of the Web application.

In addition, you might use it to implement a controller in a MVC model, such that it creates the correct desktop based on the request URL.

Available implementations are as follows.


Class
Description
SimpleUiFactory The default UI factory. The sessions generated by this factory is not serializable
SerializableUiFactory The sessions generated by this factory is serializable. If you want to store sessions when the Web server is shutdown and restore them after it started, you can specify this implementation.

Version History

Last Update : 2010/12/04


Version Date Content
     



Last Update : 2010/12/04

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.