Top Description Fields Constructors Methods
com.sun.faces.config.processor

public Class FactoryConfigProcessor

extends AbstractConfigProcessor
Class Inheritance
Static Imports
java.text.MessageFormat.format, java.util.Arrays.asList, java.util.logging.Level.FINE

This ConfigProcessor handles all elements defined under /faces-config/factory.

Field Summary

Modifier and TypeField and Description
private static final String
APPLICATION_FACTORY

/faces-config/factory/application-factory

private static final String
CLIENT_WINDOW_FACTORY

/faces-config/factory/client-window-factory

private static final String
EXCEPTION_HANDLER_FACTORY

/faces-config/factory/exception-handler-factory

private static final String
EXTERNAL_CONTEXT_FACTORY

/faces-config/factory/external-context-factory

private static final String
FACELET_CACHE_FACTORY

/faces-config/factory/facelet-cache-factory

private static final String
FACES_CONTEXT_FACTORY

/faces-config/factory/faces-context-factory

private static final String
FACTORY

/faces-config/factory

private final List<String>
factoryNames

Array of Factory names for post-configuration validation.

private static final String
FLASH_FACTORY

/faces-config/factory/flash-factory

private static final String
FLOW_HANDLER_FACTORY

/faces-config/factory/flow-handler-factory

private static final String
LIFECYCLE_FACTORY

faces-config/factory/lifecycle-factory

private static final Logger
private static final String
PARTIAL_VIEW_CONTEXT_FACTORY

/faces-config/factory/partial-view-context-factory

private static final String
RENDER_KIT_FACTORY

/faces-config/factory/render-kit-factory

private static final String
SEARCH_EXPRESSION_CONTEXT_FACTORY

/faces-config/factory/search-expression-context-factory

private static final String
TAG_HANDLER_DELEGATE_FACTORY

/faces-config/factory/tag-handler-helper-factory

private boolean
private static final String
VIEW_DECLARATION_LANGUAGE_FACTORY

/faces-config/factory/view-declaration-language-factory

private static final String
VISIT_CONTEXT_FACTORY

/faces-config/factory/visit-context-factory

Constructor Summary

AccessConstructor and Description
public
public
FactoryConfigProcessor(boolean validateFactories)

Method Summary

Modifier and TypeMethod and Description
private void
addInjectionApplicationFactory()

Add the InjectionApplicationFactory as the top-level ApplicationFactory so that the default instances, provided by com.sun.faces.application.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 com.sun.faces.context.FacesContextFactoryImpl can be injected into the actual top-level FacesContext instance (that which is returned by the InjectionFacesContextFactory's delegate).

public void
process(ServletContext
the ServletContext for the application being configured
servletContext
,
FacesContext facesContext, DocumentInfo[]
@throws Exception if an error occurs during processing
documentInfos
)

Implements com.sun.faces.config.processor.ConfigProcessor.process.

Process the array of Documents.

private void
processFactories(NodeList factories, String namespace, AtomicInteger fcCount, AtomicInteger appCount)

private static void
setFactory(String factoryName, String factoryImpl)

private void
private void
wrapFactories(int appCount, int fcCount)

Inherited from com.sun.faces.config.processor.AbstractConfigProcessor:
createInstancecreateInstancecreateInstancedestroydestroyInstancefindRootTypegetApplicationgetClassMetadataMapKeygetNodeTextgetTextMapinitializeClassMetadataMaploadClassprocessAnnotations

Field Detail

APPLICATION_FACTORYback to summary
private static final String APPLICATION_FACTORY

/faces-config/factory/application-factory

CLIENT_WINDOW_FACTORYback to summary
private static final String CLIENT_WINDOW_FACTORY

/faces-config/factory/client-window-factory

EXCEPTION_HANDLER_FACTORYback to summary
private static final String EXCEPTION_HANDLER_FACTORY

/faces-config/factory/exception-handler-factory

EXTERNAL_CONTEXT_FACTORYback to summary
private static final String EXTERNAL_CONTEXT_FACTORY

/faces-config/factory/external-context-factory

FACELET_CACHE_FACTORYback to summary
private static final String FACELET_CACHE_FACTORY

/faces-config/factory/facelet-cache-factory

FACES_CONTEXT_FACTORYback to summary
private static final String FACES_CONTEXT_FACTORY

/faces-config/factory/faces-context-factory

FACTORYback to summary
private static final String FACTORY

/faces-config/factory

factoryNamesback to summary
private final List<String> factoryNames

Array of Factory names for post-configuration validation.

FLASH_FACTORYback to summary
private static final String FLASH_FACTORY

/faces-config/factory/flash-factory

FLOW_HANDLER_FACTORYback to summary
private static final String FLOW_HANDLER_FACTORY

/faces-config/factory/flow-handler-factory

LIFECYCLE_FACTORYback to summary
private static final String LIFECYCLE_FACTORY

faces-config/factory/lifecycle-factory

LOGGERback to summary
private static final Logger LOGGER

Hides com.sun.faces.config.processor.AbstractConfigProcessor.LOGGER.

PARTIAL_VIEW_CONTEXT_FACTORYback to summary
private static final String PARTIAL_VIEW_CONTEXT_FACTORY

/faces-config/factory/partial-view-context-factory

RENDER_KIT_FACTORYback to summary
private static final String RENDER_KIT_FACTORY

/faces-config/factory/render-kit-factory

SEARCH_EXPRESSION_CONTEXT_FACTORYback to summary
private static final String SEARCH_EXPRESSION_CONTEXT_FACTORY

/faces-config/factory/search-expression-context-factory

TAG_HANDLER_DELEGATE_FACTORYback to summary
private static final String TAG_HANDLER_DELEGATE_FACTORY

/faces-config/factory/tag-handler-helper-factory

validateFactoriesback to summary
private boolean validateFactories
VIEW_DECLARATION_LANGUAGE_FACTORYback to summary
private static final String VIEW_DECLARATION_LANGUAGE_FACTORY

/faces-config/factory/view-declaration-language-factory

VISIT_CONTEXT_FACTORYback to summary
private static final String VISIT_CONTEXT_FACTORY

/faces-config/factory/visit-context-factory

Constructor Detail

FactoryConfigProcessorback to summary
public FactoryConfigProcessor()
FactoryConfigProcessorback to summary
public FactoryConfigProcessor(boolean validateFactories)

Method Detail

addInjectionApplicationFactoryback to summary
private void addInjectionApplicationFactory()

Add the InjectionApplicationFactory as the top-level ApplicationFactory so that the default instances, provided by com.sun.faces.application.ApplicationFactoryImpl can be injected into the actual top-level FacesContext instance (that which is returned by the InjectionFacesContextFactory's delegate).

addInjectionFacesContextFactoryback to summary
private void addInjectionFacesContextFactory()

Add the InjectionFacesContextFactory as the top-level FacesContextFactory so that the default instances, provided by com.sun.faces.context.FacesContextFactoryImpl can be injected into the actual top-level FacesContext instance (that which is returned by the InjectionFacesContextFactory's delegate).

processback to summary
public void process(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) throws Exception

Implements com.sun.faces.config.processor.ConfigProcessor.process.

Doc from com.sun.faces.config.processor.ConfigProcessor.process.

Process the array of Documents.

Parameters
servletContext:ServletContext

the ServletContext for the application being configured

documentInfos:DocumentInfo[]

@throws Exception if an error occurs during processing

Annotations
@Override
See Also
ConfigProcessor#process(javax.servlet.ServletContext, com.sun.faces.config.manager.documents.DocumentInfo[])
processFactoriesback to summary
private void processFactories(NodeList factories, String namespace, AtomicInteger fcCount, AtomicInteger appCount)
setFactoryback to summary
private static void setFactory(String factoryName, String factoryImpl)
verifyFactoriesExistback to summary
private void verifyFactoriesExist(ServletContext servletContext)
wrapFactoriesback to summary
private void wrapFactories(int appCount, int fcCount)