The <factory> element declares
replacements
for the factory classes for the application. The top-level nested
elements can be declared in any order.
Syntax
<factory>
[<application-factory>applicationFactory</application-factory>]
[<faces-context-factory>facesContextFactory</faces-context-factory>]
[<lifecycle-factory>lifecycleFactory</lifecycle-factory>]
[<render-kit-factory>renderKitFactory</render-kit-factory>]
</factory>
The <application-factory> element contains
the fully qualified class name for a customized
javax.faces.application.ApplicationFactory class:
<application-factory>
com.mycompany.jsf.MyApplicationFactory
</application-factory>
The <faces-context-factory> element contains
the fully qualified class name for a customized
javax.faces.context.FacesContextFactory class:
<faces-context-factory>
com.mycompany.jsf.MyFacesContextFactory
</faces-context-factory>
The <lifecycle-factory> element contains the
fully qualified class name for a customized
javax.faces.lifecycle.LifecycleFactory class:
<lifecycle-factory>
com.mycompany.jsf.MyLifecycleFactory
</lifecycle-factory>
The <render-kit-factory> element contains
the fully qualified class name for a customized
javax.faces.render.RenderKitFactory class:
<render-kit-factory>
com.mycompany.jsf.MyRenderKitFactory
</render-kit-factory>
|