Package org.apache.myfaces.config
Class FacesConfigurator
- java.lang.Object
-
- org.apache.myfaces.config.FacesConfigurator
-
public class FacesConfigurator extends Object
Configures everything for a given context. The FacesConfigurator is independent of the concrete implementations that lie behind FacesConfigUnmarshaller and FacesConfigDispenser.- Version:
- $Revision$ $Date$
- Author:
- Manfred Geiler (latest modification by $Author$)
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENABLE_DEFAULT_WINDOW_MODE
Set this attribute if the current configuration requires enable window mode
-
Constructor Summary
Constructors Constructor Description FacesConfigurator(ExternalContext externalContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure()
static void
configureAnnotatedFlows(FacesContext facesContext)
void
configureProtectedViews()
static void
enableDefaultWindowMode(FacesContext facesContext)
protected Application
getApplication()
protected FacesConfigData
getDispenser()
protected FacesContext
getFacesContext()
protected InjectionProvider
getInjectionProvider()
protected FacesConfigUnmarshaller<? extends FacesConfig>
getUnmarshaller()
static boolean
isEnableDefaultWindowMode(ExternalContext externalContext)
static boolean
isUrlWindowMode(ExternalContext externalContext)
protected void
setApplication(Application application)
void
setDispenser(FacesConfigData dispenser)
void
setUnmarshaller(FacesConfigUnmarshaller<? extends FacesConfig> unmarshaller)
void
update()
-
-
-
Field Detail
-
ENABLE_DEFAULT_WINDOW_MODE
public static final String ENABLE_DEFAULT_WINDOW_MODE
Set this attribute if the current configuration requires enable window mode- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FacesConfigurator
public FacesConfigurator(ExternalContext externalContext)
-
-
Method Detail
-
setUnmarshaller
public void setUnmarshaller(FacesConfigUnmarshaller<? extends FacesConfig> unmarshaller)
- Parameters:
unmarshaller
- the unmarshaller to set
-
getUnmarshaller
protected FacesConfigUnmarshaller<? extends FacesConfig> getUnmarshaller()
- Returns:
- the unmarshaller
-
setDispenser
public void setDispenser(FacesConfigData dispenser)
- Parameters:
dispenser
- the dispenser to set
-
getDispenser
protected FacesConfigData getDispenser()
- Returns:
- the dispenser
-
update
public void update()
-
configure
public void configure() throws FacesException
- Throws:
FacesException
-
configureAnnotatedFlows
public static void configureAnnotatedFlows(FacesContext facesContext)
-
enableDefaultWindowMode
public static void enableDefaultWindowMode(FacesContext facesContext)
-
isEnableDefaultWindowMode
public static boolean isEnableDefaultWindowMode(ExternalContext externalContext)
-
isUrlWindowMode
public static boolean isUrlWindowMode(ExternalContext externalContext)
-
configureProtectedViews
public void configureProtectedViews()
-
getInjectionProvider
protected InjectionProvider getInjectionProvider()
-
getFacesContext
protected FacesContext getFacesContext()
-
getApplication
protected Application getApplication()
-
setApplication
protected void setApplication(Application application)
-
-