Package org.apache.empire.jsf2.app
Class FacesConfiguration
java.lang.Object
org.apache.empire.jsf2.app.FacesConfiguration
FacesConfiguration
Allows programmatic Faces configuration as an alternative to the faces-config.xml
In order to provide custom configuration you must override the class WebAppStartupListener
and put it in the faces-config.xml
<system-event-listener-class>de.volkswagen.jsf.FacesStartupListener</system-event-listener-class>Further you must call the super constructor with a FacesConfiguration class like this:
public FacesStartupListener()
{
super(FacesExtensions.class);
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classConfigTypeListprotected classLifecycleUpdaterprotected classRenderKitReplacer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.faces.application.Applicationstatic final Stringprotected javax.faces.context.ExternalContextprotected final FacesImplementationprotected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponent(String componentFamily, Class<? extends javax.faces.component.UIComponent> clazz) protected voidaddConverter(Class<?> targetClass, Class<? extends javax.faces.convert.Converter> converterClass) protected voidaddELResolver(Class<? extends javax.el.ELResolver> resolverClass) protected voidaddManagedBean(Class<?> beanClass, BeanScope scope) protected voidaddManagedBean(String beanName, Class<?> beanClass, BeanScope beanScope) protected voidcheckComponentTypeExists(String componentType) protected javax.faces.render.RenderKitgetApplicationRenderKit(javax.faces.context.FacesContext context) protected FacesImplementation.BeanStorageProviderstatic javax.faces.application.ProjectStageprotected voidinitAll(javax.faces.context.FacesContext context) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidstatic <T extends FacesConfiguration>
voidinitialize(Class<T> configClass, javax.faces.context.FacesContext startupContext, FacesImplementation facesImpl) Static Initializerfinal voidinitialize(javax.faces.context.FacesContext startupContext) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidstatic booleanprotected voidprotected voidreplaceComponent(Class<? extends javax.faces.component.UIComponent> componentClassWithType, Class<? extends javax.faces.component.UIComponent> overrideComponent) protected voidreplaceComponent(String componentType, Class<? extends javax.faces.component.UIComponent> overrideComponent) protected voidreplaceComponent(String componentFamily, Class<? extends javax.faces.component.UIComponent> componentClassToReplace, Class<? extends javax.faces.component.UIComponent> overrideComponent) protected voidsetFacesInitParam(Enum<?> paramName, Object paramValue) protected voidsetFacesInitParam(String paramName, Object paramValue) protected voidsetFacesInitParam(String paramName, Object paramValue, boolean overwriteExisting)
-
Field Details
-
log
protected static final org.slf4j.Logger log -
EMPIRE_COMPONENT_FAMILY
- See Also:
-
facesImpl
-
externalContext
protected javax.faces.context.ExternalContext externalContext -
application
protected javax.faces.application.Application application
-
-
Constructor Details
-
FacesConfiguration
-
-
Method Details
-
isInitialized
public static boolean isInitialized() -
getProjectStage
public static javax.faces.application.ProjectStage getProjectStage() -
initialize
public static <T extends FacesConfiguration> void initialize(Class<T> configClass, javax.faces.context.FacesContext startupContext, FacesImplementation facesImpl) Static Initializer- Parameters:
configClass- the configuration classstartupContext- the startupContextfacesImpl- the Faces implementation
-
initialize
public final void initialize(javax.faces.context.FacesContext startupContext) -
initAll
protected void initAll(javax.faces.context.FacesContext context) -
initFacesParams
protected void initFacesParams() -
initFactories
protected void initFactories() -
initResourceHandler
protected void initResourceHandler() -
initConverters
protected void initConverters() -
initElResolvers
protected void initElResolvers() -
initLifecycle
-
initSearchExpressionResolvers
protected void initSearchExpressionResolvers() -
initComponents
protected void initComponents() -
initRenderers
-
initManagedBeans
protected void initManagedBeans() -
initControls
protected void initControls() -
getBeanStorageProvider
-
getApplicationRenderKit
protected javax.faces.render.RenderKit getApplicationRenderKit(javax.faces.context.FacesContext context) -
setFacesInitParam
-
setFacesInitParam
-
setFacesInitParam
-
addConverter
-
addComponent
-
addManagedBean
-
addManagedBean
-
replaceComponent
-
replaceComponent
-
replaceComponent
-
checkComponentTypeExists
-
addELResolver
-
listCompoennts
protected void listCompoennts()
-