com.sun.faces.config.processor
public class FactoryConfigProcessor extends AbstractConfigProcessor
This ConfigProcessor
handles all elements defined under
/faces-config/factory
.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
APPLICATION_FACTORY
/faces-config/factory/application-factory |
private static java.lang.String |
EXCEPTION_HANDLER_FACTORY
/faces-config/factory/exception-handler-factory |
private static java.lang.String |
EXTERNAL_CONTEXT_FACTORY
/faces-config/factory/external-context-factory |
private static java.lang.String |
FACELET_CACHE_FACTORY
/faces-config/factory/facelet-cache-factory |
private static java.lang.String |
FACES_CONTEXT_FACTORY
/faces-config/factory/faces-context-factory |
private static java.lang.String |
FACTORY
/faces-config/factory |
private static java.lang.String[] |
FACTORY_NAMES
Array of Factory names for post-configuration validation. |
private static java.lang.String |
LIFECYCLE_FACTORY
faces-config/factory/lifecycle-factory |
private static java.util.logging.Logger |
LOGGER |
private static java.lang.String |
PARTIAL_VIEW_CONTEXT_FACTORY
/faces-config/factory/partial-view-context-factory |
private static java.lang.String |
RENDER_KIT_FACTORY
/faces-config/factory/render-kit-factory |
private static java.lang.String |
TAG_HANDLER_DELEGATE_FACTORY
/faces-config/factory/tag-handler-helper-factory |
private boolean |
validateFactories |
private static java.lang.String |
VIEW_DECLARATION_LANGUAGE_FACTORY
/faces-config/factory/view-declaration-language-factory |
private static java.lang.String |
VISIT_CONTEXT_FACTORY
/faces-config/factory/visit-context-factory |
Constructor and Description |
---|
FactoryConfigProcessor() |
FactoryConfigProcessor(boolean validateFactories) |
Modifier and Type | Method and Description |
---|---|
private void |
addInjectionApplicationFactory()
Add the InjectionApplicationFactory as the top-level ApplicationFactory
so that the default instances, provided by
ApplicationFactoryImpl
can be injected into the actual top-level FacesContext instance (that which
is returned by the InjectionFacesContextFactory's delegate). |
private void |
addInjectionFacesContextFactory()
Add the InjectionFacesContextFactory as the top-level FacesContextFactory
so that the default instances, provided by
FacesContextFactoryImpl
can be injected into the actual top-level FacesContext instance (that which
is returned by the InjectionFacesContextFactory's delegate). |
void |
process(javax.servlet.ServletContext sc,
DocumentInfo[] documentInfos)
Process the array of
Document s. |
private void |
processFactories(org.w3c.dom.NodeList factories,
java.lang.String namespace,
java.util.concurrent.atomic.AtomicInteger fcCount,
java.util.concurrent.atomic.AtomicInteger appCount) |
private static void |
setFactory(java.lang.String factoryName,
java.lang.String factoryImpl) |
private void |
verifyFactoriesExist() |
private void |
wrapFactories(int appCount,
int fcCount) |
createInstance, createInstance, findRootType, getApplication, getNodeText, getTextMap, invokeNext, loadClass, processAnnotations, setNext
private static final java.util.logging.Logger LOGGER
private static final java.lang.String FACTORY
/faces-config/factory
private static final java.lang.String APPLICATION_FACTORY
/faces-config/factory/application-factory
private static final java.lang.String EXCEPTION_HANDLER_FACTORY
/faces-config/factory/exception-handler-factory
private static final java.lang.String VISIT_CONTEXT_FACTORY
/faces-config/factory/visit-context-factory
private static final java.lang.String VIEW_DECLARATION_LANGUAGE_FACTORY
/faces-config/factory/view-declaration-language-factory
private static final java.lang.String TAG_HANDLER_DELEGATE_FACTORY
/faces-config/factory/tag-handler-helper-factory
private static final java.lang.String FACELET_CACHE_FACTORY
/faces-config/factory/facelet-cache-factory
private static final java.lang.String FACES_CONTEXT_FACTORY
/faces-config/factory/faces-context-factory
private static final java.lang.String PARTIAL_VIEW_CONTEXT_FACTORY
/faces-config/factory/partial-view-context-factory
private static final java.lang.String LIFECYCLE_FACTORY
faces-config/factory/lifecycle-factory
private static final java.lang.String RENDER_KIT_FACTORY
/faces-config/factory/render-kit-factory
private static final java.lang.String EXTERNAL_CONTEXT_FACTORY
/faces-config/factory/external-context-factory
private static final java.lang.String[] FACTORY_NAMES
Array of Factory names for post-configuration validation.
private boolean validateFactories
public FactoryConfigProcessor()
public FactoryConfigProcessor(boolean validateFactories)
public void process(javax.servlet.ServletContext sc, DocumentInfo[] documentInfos) throws java.lang.Exception
ConfigProcessor
Process the array of Document
s.
sc
- the ServletContext
for the application being configureddocumentInfos
- @throws Exception if an error occurs during processingjava.lang.Exception
ConfigProcessor.process(javax.servlet.ServletContext,com.sun.faces.config.DocumentInfo[])
private void processFactories(org.w3c.dom.NodeList factories, java.lang.String namespace, java.util.concurrent.atomic.AtomicInteger fcCount, java.util.concurrent.atomic.AtomicInteger appCount)
private static void setFactory(java.lang.String factoryName, java.lang.String factoryImpl)
private void verifyFactoriesExist()
private void wrapFactories(int appCount, int fcCount)
private void addInjectionApplicationFactory()
ApplicationFactoryImpl
can be injected into the actual top-level FacesContext instance (that which
is returned by the InjectionFacesContextFactory's delegate).private void addInjectionFacesContextFactory()
FacesContextFactoryImpl
can be injected into the actual top-level FacesContext instance (that which
is returned by the InjectionFacesContextFactory's delegate).Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.