org.apache.myfaces.config
Class FacesConfigurator

java.lang.Object
  extended by 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: 1189008 $ $Date: 2011-10-25 21:39:00 -0500 (Tue, 25 Oct 2011) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Nested Class Summary
protected static class FacesConfigurator.JarInfo
           
 
Field Summary
static String COMMONS_EL_PACKAGE_NAME
           
static String JSP_API_PACKAGE_NAME
           
static String MYFACES_API_PACKAGE_NAME
           
static String MYFACES_IMPL_PACKAGE_NAME
           
static String MYFACES_ORCHESTRA_PACKAGE_NAME
           
static String MYFACES_ORCHESTRA12_PACKAGE_NAME
           
static String MYFACES_TOBAGO_PACKAGE_NAME
           
static String MYFACES_TOMAHAWK_PACKAGE_NAME
           
static String MYFACES_TOMAHAWK_SANDBOX_PACKAGE_NAME
           
static String MYFACES_TOMAHAWK_SANDBOX12_PACKAGE_NAME
           
static String MYFACES_TOMAHAWK_SANDBOX15_PACKAGE_NAME
           
static String MYFACES_TOMAHAWK12_PACKAGE_NAME
           
static String MYFACES_TRINIDAD_API_PACKAGE_NAME
           
static String MYFACES_TRINIDAD_IMPL_PACKAGE_NAME
           
static String REGEX_LIBRARY
          Regular expression used to extract the jar information from the files present in the classpath.
 
Constructor Summary
FacesConfigurator(ExternalContext externalContext)
           
 
Method Summary
protected static void addJarInfo(Map<String,List<FacesConfigurator.JarInfo>> libs, URL url)
           
 void configure()
           
protected  void feedMetaInfServicesFactories()
          This method performs part of the factory search outlined in section 10.2.6.1.
protected  FacesConfigDispenser getDispenser()
           
protected  RuntimeConfig getRuntimeConfig()
           
protected  FacesConfigUnmarshaller getUnmarshaller()
           
protected  void logMetaInf()
          This method performs part of the factory search outlined in section 10.2.6.1.
 void setDispenser(FacesConfigDispenser dispenser)
           
 void setRuntimeConfig(RuntimeConfig runtimeConfig)
           
 void setUnmarshaller(FacesConfigUnmarshaller unmarshaller)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MYFACES_API_PACKAGE_NAME

public static final String MYFACES_API_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_IMPL_PACKAGE_NAME

public static final String MYFACES_IMPL_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOMAHAWK_PACKAGE_NAME

public static final String MYFACES_TOMAHAWK_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOMAHAWK12_PACKAGE_NAME

public static final String MYFACES_TOMAHAWK12_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_ORCHESTRA_PACKAGE_NAME

public static final String MYFACES_ORCHESTRA_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_ORCHESTRA12_PACKAGE_NAME

public static final String MYFACES_ORCHESTRA12_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TRINIDAD_API_PACKAGE_NAME

public static final String MYFACES_TRINIDAD_API_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TRINIDAD_IMPL_PACKAGE_NAME

public static final String MYFACES_TRINIDAD_IMPL_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOBAGO_PACKAGE_NAME

public static final String MYFACES_TOBAGO_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOMAHAWK_SANDBOX_PACKAGE_NAME

public static final String MYFACES_TOMAHAWK_SANDBOX_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOMAHAWK_SANDBOX12_PACKAGE_NAME

public static final String MYFACES_TOMAHAWK_SANDBOX12_PACKAGE_NAME
See Also:
Constant Field Values

MYFACES_TOMAHAWK_SANDBOX15_PACKAGE_NAME

public static final String MYFACES_TOMAHAWK_SANDBOX15_PACKAGE_NAME
See Also:
Constant Field Values

COMMONS_EL_PACKAGE_NAME

public static final String COMMONS_EL_PACKAGE_NAME
See Also:
Constant Field Values

JSP_API_PACKAGE_NAME

public static final String JSP_API_PACKAGE_NAME
See Also:
Constant Field Values

REGEX_LIBRARY

public static final String REGEX_LIBRARY
Regular expression used to extract the jar information from the files present in the classpath.

The groups found with the regular expression are:

The regexp is searching in the file name to the first - followed by a digit to split artifact name and version.

See Also:
Constant Field Values
Constructor Detail

FacesConfigurator

public FacesConfigurator(ExternalContext externalContext)
Method Detail

setUnmarshaller

public void setUnmarshaller(FacesConfigUnmarshaller unmarshaller)
Parameters:
unmarshaller - the unmarshaller to set

getUnmarshaller

protected FacesConfigUnmarshaller getUnmarshaller()
Returns:
the unmarshaller

setDispenser

public void setDispenser(FacesConfigDispenser dispenser)
Parameters:
dispenser - the dispenser to set

getDispenser

protected FacesConfigDispenser getDispenser()
Returns:
the dispenser

update

public void update()

configure

public void configure()
               throws FacesException
Throws:
FacesException

logMetaInf

protected void logMetaInf()
This method performs part of the factory search outlined in section 10.2.6.1.


addJarInfo

protected static void addJarInfo(Map<String,List<FacesConfigurator.JarInfo>> libs,
                                 URL url)

feedMetaInfServicesFactories

protected void feedMetaInfServicesFactories()
This method performs part of the factory search outlined in section 10.2.6.1.


getRuntimeConfig

protected RuntimeConfig getRuntimeConfig()

setRuntimeConfig

public void setRuntimeConfig(RuntimeConfig runtimeConfig)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.