The web-app-factory-class Element"

From Documentation
(Created page with "{{ZKConfigurationReferencePageHeader}} '''Syntax:''' <web-app-factory-class>''a_class_name''</web-app-factory-class> [Default: none (and <javadoc>org.zkoss.zk.ui.http.SimpleW...")
 
m ((via JWB))
 
(3 intermediate revisions by one other user not shown)
Line 5: Line 5:
  
 
  [Default: none (and <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc> is used)]
 
  [Default: none (and <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc> is used)]
[since 5.1.0]
+
{{versionSince|6.0.0}}
  
 
It specifies which class is used to instantiate the instance of the implementation of the Web application. The class must have a default constructor (without any argument), and implement the <javadoc type="interface">org.zkoss.zk.ui.sys.WebAppFactory</javadoc> interface.
 
It specifies which class is used to instantiate the instance of the implementation of the Web application. The class must have a default constructor (without any argument), and implement the <javadoc type="interface">org.zkoss.zk.ui.sys.WebAppFactory</javadoc> interface.
Line 15: Line 15:
 
</source>
 
</source>
  
Alternatively, you could use [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-class Element|the web-app-class element]] instead. Notice, if both specified, [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-class Element|the web-app-class element]] has the higher priority.
+
Alternatively, you could use [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-class Element|the web-app-class element]] instead. Notice, if both specified, [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-factory-class Element|the web-app-factory-class element]] has the higher priority.
  
 
=Version History=
 
=Version History=
Line 22: Line 22:
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.1.0
+
| 6.0.0
 
| September 2011
 
| September 2011
 
| This feature was introduced
 
| This feature was introduced

Latest revision as of 09:35, 14 March 2022


The web-app-factory-class Element


Syntax:

<web-app-factory-class>a_class_name</web-app-factory-class>
[Default: none (and SimpleWebApp is used)]

Since 6.0.0

It specifies which class is used to instantiate the instance of the implementation of the Web application. The class must have a default constructor (without any argument), and implement the WebAppFactory interface.

<system-config>
  <web-app-factory-class>foo.MyKillerAppFactory</web-app-factory-class>
</system-config>

Alternatively, you could use the web-app-class element instead. Notice, if both specified, the web-app-factory-class element has the higher priority.

Version History

Last Update : 2022/03/14


Version Date Content
6.0.0 September 2011 This feature was introduced



Last Update : 2022/03/14

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