public class ApplicationImpl
extends javax.faces.application.Application
Application represents a per-web-application singleton object where applications based on JavaServer Faces (or implementations wishing to provide extended functionality) can register application-wide singletons that provide functionality required by JavaServer Faces.
Modifier and Type | Class and Description |
---|---|
private static class |
ApplicationImpl.ComponentResourceClassNotFound |
private static class |
ApplicationImpl.ComponentSystemEventHelper
Utility class for dealing with
UIComponent events. |
private static class |
ApplicationImpl.EventInfo
Represent a logical association between a SystemEvent and a Source.
|
private class |
ApplicationImpl.ReentrantLisneterInvocationGuard |
private static class |
ApplicationImpl.SystemEventHelper
Utility class for dealing with application events.
|
private static class |
ApplicationImpl.SystemEventInfo
Simple wrapper class for application level SystemEvents.
|
Modifier and Type | Field and Description |
---|---|
private javax.faces.event.ActionListener |
actionListener |
private ApplicationAssociate |
associate |
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> |
behaviorMap |
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> |
componentMap |
(package private) FacesCompositeELResolver |
compositeELResolver |
private ApplicationImpl.ComponentSystemEventHelper |
compSysEventHelper |
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> |
converterIdMap |
private java.util.Map<java.lang.Class<?>,java.lang.Object> |
converterTypeMap |
private java.util.Locale |
defaultLocale |
protected java.lang.String |
defaultRenderKitId |
private java.util.Set<java.lang.String> |
defaultValidatorIds |
private java.util.Map<java.lang.String,java.lang.String> |
defaultValidatorInfo |
private java.util.List<javax.el.ELContextListener> |
elContextListeners |
(package private) javax.el.CompositeELResolver |
elResolvers |
private static javax.el.ELContextListener[] |
EMPTY_EL_CTX_LIST_ARRAY |
private ApplicationImpl.ReentrantLisneterInvocationGuard |
listenerInvocationGuard |
private static java.util.logging.Logger |
LOGGER |
private java.lang.String |
messageBundle |
private javax.faces.application.NavigationHandler |
navigationHandler |
private boolean |
passDefaultTimeZone |
private javax.faces.application.ProjectStage |
projectStage |
private PropertyResolverImpl |
propertyResolver |
private boolean |
registerPropertyEditors |
private javax.faces.application.ResourceHandler |
resourceHandler |
private java.lang.String[] |
STANDARD_BY_TYPE_CONVERTER_CLASSES |
private static java.util.Map<java.lang.String,java.lang.Class<?>[]> |
STANDARD_CONV_ID_TO_TYPE_MAP |
private static java.util.Map<java.lang.Class<?>,java.lang.String> |
STANDARD_TYPE_TO_CONV_ID_MAP |
private javax.faces.application.StateManager |
stateManager |
private java.util.ArrayList<java.util.Locale> |
supportedLocales |
private ApplicationImpl.SystemEventHelper |
systemEventHelper |
private java.util.TimeZone |
systemTimeZone |
static java.lang.String |
THIS_LIBRARY |
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> |
validatorMap |
(package private) VariableResolverImpl |
variableResolver |
private javax.faces.application.ViewHandler |
viewHandler |
Constructor and Description |
---|
ApplicationImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addBehavior(java.lang.String behaviorId,
java.lang.String behaviorClass) |
void |
addComponent(java.lang.String componentType,
java.lang.String componentClass) |
void |
addConverter(java.lang.Class<?> targetClass,
java.lang.String converterClass) |
void |
addConverter(java.lang.String converterId,
java.lang.String converterClass) |
void |
addDefaultValidatorId(java.lang.String validatorId) |
void |
addELContextListener(javax.el.ELContextListener listener) |
void |
addELResolver(javax.el.ELResolver resolver) |
private void |
addPropertyEditorIfNecessary(java.lang.Class<?> targetClass)
To enable EL Coercion to use JSF Custom converters, this
method will call
PropertyEditorManager.registerEditor() ,
passing the ConverterPropertyEditor class for the
targetClass if the target class is not one of the standard
by-type converter target classes. |
void |
addValidator(java.lang.String validatorId,
java.lang.String validatorClass) |
private void |
applyAnnotations(javax.faces.context.FacesContext ctx,
java.lang.String rendererType,
javax.faces.component.UIComponent c)
Process any annotations associated with this component/renderer.
|
private java.lang.Object |
convertValueToTypeIfNecessary(java.lang.String name,
java.lang.Object value,
java.beans.PropertyDescriptor[] pd)
Helper method to convert a value to a type as defined in PropertyDescriptor(s)
|
private javax.faces.event.SystemEventListener[] |
copyListWithExclusions(java.util.Collection<javax.faces.event.SystemEventListener> original,
java.util.Map<javax.faces.event.SystemEventListener,java.lang.Boolean> excludes) |
javax.faces.component.behavior.Behavior |
createBehavior(java.lang.String behaviorId) |
javax.faces.component.UIComponent |
createComponent(javax.faces.context.FacesContext context,
javax.faces.application.Resource componentResource) |
javax.faces.component.UIComponent |
createComponent(javax.faces.context.FacesContext context,
java.lang.String componentType,
java.lang.String rendererType) |
javax.faces.component.UIComponent |
createComponent(java.lang.String componentType) |
javax.faces.component.UIComponent |
createComponent(javax.faces.el.ValueBinding componentBinding,
javax.faces.context.FacesContext context,
java.lang.String componentType) |
javax.faces.component.UIComponent |
createComponent(javax.el.ValueExpression componentExpression,
javax.faces.context.FacesContext context,
java.lang.String componentType) |
javax.faces.component.UIComponent |
createComponent(javax.el.ValueExpression componentExpression,
javax.faces.context.FacesContext context,
java.lang.String componentType,
java.lang.String rendererType) |
private javax.faces.component.UIComponent |
createComponentApplyAnnotations(javax.faces.context.FacesContext ctx,
java.lang.String componentType,
java.lang.String rendererType,
boolean applyAnnotations)
Leveraged by
Application.createComponent(String) and Application.createComponent(javax.faces.context.FacesContext, String, String)
This method will apply any component and render annotations that may be present. |
private javax.faces.component.UIComponent |
createComponentApplyAnnotations(javax.faces.context.FacesContext ctx,
javax.el.ValueExpression componentExpression,
java.lang.String componentType,
java.lang.String rendererType,
boolean applyAnnotations)
Leveraged by
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String) and
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String) . |
private javax.faces.component.UIComponent |
createComponentFromScriptResource(javax.faces.context.FacesContext context,
javax.faces.application.Resource scriptComponentResource,
javax.faces.application.Resource componentResource) |
javax.faces.convert.Converter |
createConverter(java.lang.Class<?> targetClass) |
javax.faces.convert.Converter |
createConverter(java.lang.String converterId) |
protected javax.faces.convert.Converter |
createConverterBasedOnClass(java.lang.Class<?> targetClass,
java.lang.Class<?> baseClass) |
javax.faces.el.MethodBinding |
createMethodBinding(java.lang.String ref,
java.lang.Class<?>[] params) |
javax.faces.validator.Validator |
createValidator(java.lang.String validatorId) |
javax.faces.el.ValueBinding |
createValueBinding(java.lang.String ref) |
<T> T |
evaluateExpressionGet(javax.faces.context.FacesContext context,
java.lang.String expression,
java.lang.Class<? extends T> expectedType) |
javax.faces.event.ActionListener |
getActionListener() |
javax.el.CompositeELResolver |
getApplicationELResolvers() |
java.util.Iterator<java.lang.String> |
getBehaviorIds() |
java.util.Iterator<java.lang.String> |
getComponentTypes() |
java.util.Iterator<java.lang.String> |
getConverterIds() |
java.util.Iterator<java.lang.Class<?>> |
getConverterTypes() |
java.util.Locale |
getDefaultLocale() |
java.lang.String |
getDefaultRenderKitId() |
java.util.Map<java.lang.String,java.lang.String> |
getDefaultValidatorInfo() |
javax.el.ELContextListener[] |
getELContextListeners() |
javax.el.ELResolver |
getELResolver() |
javax.el.ExpressionFactory |
getExpressionFactory() |
javax.faces.flow.FlowHandler |
getFlowHandler() |
private java.util.Set<javax.faces.event.SystemEventListener> |
getListeners(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEvent,
java.lang.Class<?> sourceClass) |
java.lang.String |
getMessageBundle() |
javax.faces.application.NavigationHandler |
getNavigationHandler() |
javax.faces.application.ProjectStage |
getProjectStage() |
javax.faces.el.PropertyResolver |
getPropertyResolver() |
java.util.ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext context,
java.lang.String var) |
javax.faces.application.ResourceHandler |
getResourceHandler() |
javax.faces.application.StateManager |
getStateManager() |
java.util.Iterator<java.util.Locale> |
getSupportedLocales() |
java.util.Iterator<java.lang.String> |
getValidatorIds() |
javax.faces.el.VariableResolver |
getVariableResolver() |
javax.faces.application.ViewHandler |
getViewHandler() |
private javax.faces.event.SystemEvent |
invokeComponentListenersFor(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
java.lang.Object source) |
private javax.faces.event.SystemEvent |
invokeListenersFor(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
javax.faces.event.SystemEvent event,
java.lang.Object source,
java.lang.Class<?> sourceBaseType,
boolean useSourceLookup)
Traverse the
List of listeners and invoke any that are relevent
for the specified source. |
private javax.faces.event.SystemEvent |
invokeViewListenersFor(javax.faces.context.FacesContext ctx,
java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
javax.faces.event.SystemEvent event,
java.lang.Object source) |
private boolean |
needsProcessing(javax.faces.context.FacesContext context,
java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass) |
protected java.lang.Object |
newConverter(java.lang.Class<?> key,
java.util.Map<java.lang.Class<?>,java.lang.Object> map,
java.lang.Class<?> targetClass)
The same as newThing except that a single argument constructor
that accepts a Class is looked for before calling the no-arg version.
|
private java.lang.Object |
newThing(java.lang.String key,
ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> map)
PRECONDITIONS: the values in the Map are either Strings
representing fully qualified java class names, or java.lang.Class
instances.
|
private boolean |
originalDiffersFromCopy(java.util.Collection<javax.faces.event.SystemEventListener> original,
javax.faces.event.SystemEventListener[] copy) |
private void |
performOneTimeELInitialization() |
private javax.faces.event.SystemEvent |
processListeners(java.util.Collection<javax.faces.event.SystemEventListener> listeners,
javax.faces.event.SystemEvent event,
java.lang.Object source,
ApplicationImpl.EventInfo eventInfo)
Iterate through and invoke the listeners.
|
private javax.faces.event.SystemEvent |
processListenersAccountingForAdds(java.util.List<javax.faces.event.SystemEventListener> listeners,
javax.faces.event.SystemEvent event,
java.lang.Object source,
ApplicationImpl.EventInfo eventInfo) |
void |
publishEvent(javax.faces.context.FacesContext context,
java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
java.lang.Class<?> sourceBaseType,
java.lang.Object source) |
void |
publishEvent(javax.faces.context.FacesContext context,
java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
java.lang.Object source) |
private void |
pushDeclaredDefaultValuesToAttributesMap(javax.faces.context.FacesContext context,
java.beans.BeanInfo componentMetadata,
java.util.Map<java.lang.String,java.lang.Object> attrs,
javax.faces.component.UIComponent component) |
void |
removeELContextListener(javax.el.ELContextListener listener) |
void |
setActionListener(javax.faces.event.ActionListener actionListener) |
void |
setDefaultLocale(java.util.Locale locale) |
void |
setDefaultRenderKitId(java.lang.String renderKitId) |
void |
setFlowHandler(javax.faces.flow.FlowHandler flowHandler) |
void |
setMessageBundle(java.lang.String messageBundle) |
void |
setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler) |
void |
setPropertyResolver(javax.faces.el.PropertyResolver resolver) |
void |
setResourceHandler(javax.faces.application.ResourceHandler resourceHandler) |
void |
setStateManager(javax.faces.application.StateManager stateManager) |
void |
setSupportedLocales(java.util.Collection<java.util.Locale> newLocales) |
void |
setVariableResolver(javax.faces.el.VariableResolver resolver) |
void |
setViewHandler(javax.faces.application.ViewHandler viewHandler) |
void |
subscribeToEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
java.lang.Class<?> sourceClass,
javax.faces.event.SystemEventListener listener) |
void |
subscribeToEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
javax.faces.event.SystemEventListener listener) |
void |
unsubscribeFromEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
java.lang.Class<?> sourceClass,
javax.faces.event.SystemEventListener listener) |
void |
unsubscribeFromEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass,
javax.faces.event.SystemEventListener listener) |
private static final java.util.logging.Logger LOGGER
private static final javax.el.ELContextListener[] EMPTY_EL_CTX_LIST_ARRAY
private static final java.util.Map<java.lang.String,java.lang.Class<?>[]> STANDARD_CONV_ID_TO_TYPE_MAP
private static final java.util.Map<java.lang.Class<?>,java.lang.String> STANDARD_TYPE_TO_CONV_ID_MAP
private ApplicationAssociate associate
private javax.faces.application.ProjectStage projectStage
private volatile javax.faces.event.ActionListener actionListener
private volatile javax.faces.application.NavigationHandler navigationHandler
private volatile PropertyResolverImpl propertyResolver
volatile VariableResolverImpl variableResolver
private volatile javax.faces.application.ViewHandler viewHandler
private volatile javax.faces.application.ResourceHandler resourceHandler
private volatile javax.faces.application.StateManager stateManager
private volatile java.util.ArrayList<java.util.Locale> supportedLocales
private volatile java.util.Locale defaultLocale
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> behaviorMap
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> componentMap
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> converterIdMap
private ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> validatorMap
private java.util.Map<java.lang.Class<?>,java.lang.Object> converterTypeMap
private java.util.Set<java.lang.String> defaultValidatorIds
private volatile java.util.Map<java.lang.String,java.lang.String> defaultValidatorInfo
private volatile java.lang.String messageBundle
private java.util.List<javax.el.ELContextListener> elContextListeners
javax.el.CompositeELResolver elResolvers
FacesCompositeELResolver compositeELResolver
private final ApplicationImpl.SystemEventHelper systemEventHelper
private final ApplicationImpl.ComponentSystemEventHelper compSysEventHelper
private boolean passDefaultTimeZone
private boolean registerPropertyEditors
private java.util.TimeZone systemTimeZone
private final java.lang.String[] STANDARD_BY_TYPE_CONVERTER_CLASSES
protected java.lang.String defaultRenderKitId
public static final java.lang.String THIS_LIBRARY
private ApplicationImpl.ReentrantLisneterInvocationGuard listenerInvocationGuard
public void publishEvent(javax.faces.context.FacesContext context, java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, java.lang.Object source)
publishEvent
in class javax.faces.application.Application
Application.publishEvent(FacesContext, Class, Object)
public void publishEvent(javax.faces.context.FacesContext context, java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, java.lang.Class<?> sourceBaseType, java.lang.Object source)
publishEvent
in class javax.faces.application.Application
Application.publishEvent(FacesContext, Class, Object)
public void subscribeToEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, javax.faces.event.SystemEventListener listener)
subscribeToEvent
in class javax.faces.application.Application
Application.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)
public void subscribeToEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEventListener listener)
subscribeToEvent
in class javax.faces.application.Application
Application.subscribeToEvent(Class, javax.faces.event.SystemEventListener)
public void unsubscribeFromEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, javax.faces.event.SystemEventListener listener)
unsubscribeFromEvent
in class javax.faces.application.Application
Application.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)
public void unsubscribeFromEvent(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEventListener listener)
unsubscribeFromEvent
in class javax.faces.application.Application
Application.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)
public void addELContextListener(javax.el.ELContextListener listener)
addELContextListener
in class javax.faces.application.Application
Application.addELContextListener(javax.el.ELContextListener)
public void removeELContextListener(javax.el.ELContextListener listener)
removeELContextListener
in class javax.faces.application.Application
Application.removeELContextListener(javax.el.ELContextListener)
public javax.el.ELContextListener[] getELContextListeners()
getELContextListeners
in class javax.faces.application.Application
Application.getELContextListeners()
public javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory
in class javax.faces.application.Application
Application.getExpressionFactory()
public javax.faces.flow.FlowHandler getFlowHandler()
getFlowHandler
in class javax.faces.application.Application
public void setFlowHandler(javax.faces.flow.FlowHandler flowHandler)
setFlowHandler
in class javax.faces.application.Application
public <T> T evaluateExpressionGet(javax.faces.context.FacesContext context, java.lang.String expression, java.lang.Class<? extends T> expectedType) throws javax.el.ELException
evaluateExpressionGet
in class javax.faces.application.Application
javax.el.ELException
Application.evaluateExpressionGet(javax.faces.context.FacesContext, String, Class)
public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression, javax.faces.context.FacesContext context, java.lang.String componentType) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
public javax.el.ELResolver getELResolver()
getELResolver
in class javax.faces.application.Application
Application.getELResolver()
public void addELResolver(javax.el.ELResolver resolver)
addELResolver
in class javax.faces.application.Application
Application.addELResolver(javax.el.ELResolver)
public javax.faces.application.ProjectStage getProjectStage()
getProjectStage
in class javax.faces.application.Application
Application.getProjectStage()
public javax.el.CompositeELResolver getApplicationELResolvers()
public javax.faces.event.ActionListener getActionListener()
getActionListener
in class javax.faces.application.Application
Application.getActionListener()
public javax.faces.application.ViewHandler getViewHandler()
getViewHandler
in class javax.faces.application.Application
Application.getViewHandler()
public void setViewHandler(javax.faces.application.ViewHandler viewHandler)
setViewHandler
in class javax.faces.application.Application
Application.setViewHandler(javax.faces.application.ViewHandler)
public javax.faces.application.ResourceHandler getResourceHandler()
getResourceHandler
in class javax.faces.application.Application
Application.getResourceHandler()
public void setResourceHandler(javax.faces.application.ResourceHandler resourceHandler)
setResourceHandler
in class javax.faces.application.Application
Application.setResourceHandler(javax.faces.application.ResourceHandler)
public javax.faces.application.StateManager getStateManager()
getStateManager
in class javax.faces.application.Application
Application.getStateManager()
public void setStateManager(javax.faces.application.StateManager stateManager)
setStateManager
in class javax.faces.application.Application
Application.setStateManager(javax.faces.application.StateManager)
public void setActionListener(javax.faces.event.ActionListener actionListener)
setActionListener
in class javax.faces.application.Application
Application.setActionListener(javax.faces.event.ActionListener)
public javax.faces.application.NavigationHandler getNavigationHandler()
getNavigationHandler
in class javax.faces.application.Application
Application.getNavigationHandler()
public void setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler)
setNavigationHandler
in class javax.faces.application.Application
Application.setNavigationHandler(javax.faces.application.NavigationHandler)
public javax.faces.el.PropertyResolver getPropertyResolver()
getPropertyResolver
in class javax.faces.application.Application
Application.setPropertyResolver(javax.faces.el.PropertyResolver)
public java.util.ResourceBundle getResourceBundle(javax.faces.context.FacesContext context, java.lang.String var)
getResourceBundle
in class javax.faces.application.Application
Application.getResourceBundle(javax.faces.context.FacesContext, String)
public void setPropertyResolver(javax.faces.el.PropertyResolver resolver)
setPropertyResolver
in class javax.faces.application.Application
Application.setPropertyResolver(javax.faces.el.PropertyResolver)
public javax.faces.el.MethodBinding createMethodBinding(java.lang.String ref, java.lang.Class<?>[] params)
createMethodBinding
in class javax.faces.application.Application
Application.createMethodBinding(String, Class[])
public javax.faces.el.ValueBinding createValueBinding(java.lang.String ref) throws javax.faces.el.ReferenceSyntaxException
createValueBinding
in class javax.faces.application.Application
javax.faces.el.ReferenceSyntaxException
Application.createValueBinding(String)
public javax.faces.el.VariableResolver getVariableResolver()
getVariableResolver
in class javax.faces.application.Application
Application.getVariableResolver()
public void setVariableResolver(javax.faces.el.VariableResolver resolver)
setVariableResolver
in class javax.faces.application.Application
Application.setVariableResolver(javax.faces.el.VariableResolver)
public void addBehavior(java.lang.String behaviorId, java.lang.String behaviorClass)
addBehavior
in class javax.faces.application.Application
Application.addBehavior(String, String)
public javax.faces.component.behavior.Behavior createBehavior(java.lang.String behaviorId) throws javax.faces.FacesException
createBehavior
in class javax.faces.application.Application
javax.faces.FacesException
Application.createBehavior(String)
public java.util.Iterator<java.lang.String> getBehaviorIds()
getBehaviorIds
in class javax.faces.application.Application
Application.getBehaviorIds()
public void addComponent(java.lang.String componentType, java.lang.String componentClass)
addComponent
in class javax.faces.application.Application
Application.addComponent(java.lang.String, java.lang.String)
public javax.faces.component.UIComponent createComponent(java.lang.String componentType) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
public javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, javax.faces.application.Resource componentResource) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
private void pushDeclaredDefaultValuesToAttributesMap(javax.faces.context.FacesContext context, java.beans.BeanInfo componentMetadata, java.util.Map<java.lang.String,java.lang.Object> attrs, javax.faces.component.UIComponent component)
public javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding, javax.faces.context.FacesContext context, java.lang.String componentType) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression, javax.faces.context.FacesContext context, java.lang.String componentType, java.lang.String rendererType)
createComponent
in class javax.faces.application.Application
public javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, java.lang.String componentType, java.lang.String rendererType)
createComponent
in class javax.faces.application.Application
public java.util.Iterator<java.lang.String> getComponentTypes()
getComponentTypes
in class javax.faces.application.Application
Application.getComponentTypes()
public void addConverter(java.lang.String converterId, java.lang.String converterClass)
addConverter
in class javax.faces.application.Application
Application.addConverter(String, String)
public void addConverter(java.lang.Class<?> targetClass, java.lang.String converterClass)
addConverter
in class javax.faces.application.Application
Application.addConverter(Class, String)
private java.lang.Object convertValueToTypeIfNecessary(java.lang.String name, java.lang.Object value, java.beans.PropertyDescriptor[] pd)
name
- value
- pd
- private void addPropertyEditorIfNecessary(java.lang.Class<?> targetClass)
To enable EL Coercion to use JSF Custom converters, this
method will call PropertyEditorManager.registerEditor()
,
passing the ConverterPropertyEditor
class for the
targetClass
if the target class is not one of the standard
by-type converter target classes.
targetClass
- the target class for which a PropertyEditory may or
may not be createdprivate void performOneTimeELInitialization()
public javax.faces.convert.Converter createConverter(java.lang.String converterId)
createConverter
in class javax.faces.application.Application
Application.createConverter(String)
public javax.faces.convert.Converter createConverter(java.lang.Class<?> targetClass)
createConverter
in class javax.faces.application.Application
Application.createConverter(Class)
protected javax.faces.convert.Converter createConverterBasedOnClass(java.lang.Class<?> targetClass, java.lang.Class<?> baseClass)
public java.util.Iterator<java.lang.String> getConverterIds()
getConverterIds
in class javax.faces.application.Application
Application.getConverterIds()
public java.util.Iterator<java.lang.Class<?>> getConverterTypes()
getConverterTypes
in class javax.faces.application.Application
Application.getConverterTypes()
public java.util.Iterator<java.util.Locale> getSupportedLocales()
getSupportedLocales
in class javax.faces.application.Application
Application.getSupportedLocales()
public void setSupportedLocales(java.util.Collection<java.util.Locale> newLocales)
setSupportedLocales
in class javax.faces.application.Application
Application.setSupportedLocales(java.util.Collection)
public java.util.Locale getDefaultLocale()
getDefaultLocale
in class javax.faces.application.Application
Application.getDefaultLocale()
public void setDefaultLocale(java.util.Locale locale)
setDefaultLocale
in class javax.faces.application.Application
Application.setDefaultLocale(java.util.Locale)
public java.lang.String getDefaultRenderKitId()
getDefaultRenderKitId
in class javax.faces.application.Application
Application.getDefaultRenderKitId()
public void setDefaultRenderKitId(java.lang.String renderKitId)
setDefaultRenderKitId
in class javax.faces.application.Application
Application.setDefaultRenderKitId(String)
public void addValidator(java.lang.String validatorId, java.lang.String validatorClass)
addValidator
in class javax.faces.application.Application
Application.addValidator(String, String)
public javax.faces.validator.Validator createValidator(java.lang.String validatorId) throws javax.faces.FacesException
createValidator
in class javax.faces.application.Application
javax.faces.FacesException
Application.createValidator(String)
public java.util.Iterator<java.lang.String> getValidatorIds()
getValidatorIds
in class javax.faces.application.Application
Application.getValidatorIds()
public void addDefaultValidatorId(java.lang.String validatorId)
addDefaultValidatorId
in class javax.faces.application.Application
Application.addDefaultValidatorId(String)
public java.util.Map<java.lang.String,java.lang.String> getDefaultValidatorInfo()
getDefaultValidatorInfo
in class javax.faces.application.Application
Application.getDefaultValidatorInfo()
public void setMessageBundle(java.lang.String messageBundle)
setMessageBundle
in class javax.faces.application.Application
Application.setMessageBundle(String)
public java.lang.String getMessageBundle()
getMessageBundle
in class javax.faces.application.Application
Application.getMessageBundle()
private java.lang.Object newThing(java.lang.String key, ViewMemberInstanceFactoryMetadataMap<java.lang.String,java.lang.Object> map)
PRECONDITIONS: the values in the Map are either Strings representing fully qualified java class names, or java.lang.Class instances.
ALGORITHM: Look in the argument map for a value for the argument key. If found, if the value is instanceof String, assume the String specifies a fully qualified java class name and obtain the java.lang.Class instance for that String using Util.loadClass(). Replace the String instance in the argument map with the Class instance. If the value is instanceof Class, proceed. Assert that the value is either instanceof java.lang.Class or java.lang.String.
Now that you have a java.lang.class, call its newInstance and return it as the result of this method.
key
- Used to look up the value in the Map
.map
- The Map
that will be searched.protected java.lang.Object newConverter(java.lang.Class<?> key, java.util.Map<java.lang.Class<?>,java.lang.Object> map, java.lang.Class<?> targetClass)
The same as newThing except that a single argument constructor that accepts a Class is looked for before calling the no-arg version.
PRECONDITIONS: the values in the Map are either Strings representing fully qualified java class names, or java.lang.Class instances.
ALGORITHM: Look in the argument map for a value for the argument key. If found, if the value is instanceof String, assume the String specifies a fully qualified java class name and obtain the java.lang.Class instance for that String using Util.loadClass(). Replace the String instance in the argument map with the Class instance. If the value is instanceof Class, proceed. Assert that the value is either instanceof java.lang.Class or java.lang.String.
Now that you have a java.lang.class, call its newInstance and return it as the result of this method.
key
- Used to look up the value in the Map
.map
- The Map
that will be searched.targetClass
- the target class for the single argument ctorprivate javax.faces.component.UIComponent createComponentFromScriptResource(javax.faces.context.FacesContext context, javax.faces.application.Resource scriptComponentResource, javax.faces.application.Resource componentResource)
private javax.faces.component.UIComponent createComponentApplyAnnotations(javax.faces.context.FacesContext ctx, java.lang.String componentType, java.lang.String rendererType, boolean applyAnnotations)
Application.createComponent(String)
and Application.createComponent(javax.faces.context.FacesContext, String, String)
This method will apply any component and render annotations that may be present.private javax.faces.component.UIComponent createComponentApplyAnnotations(javax.faces.context.FacesContext ctx, javax.el.ValueExpression componentExpression, java.lang.String componentType, java.lang.String rendererType, boolean applyAnnotations)
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String)
and
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)
.
This method will apply any component and render annotations that may be present.private void applyAnnotations(javax.faces.context.FacesContext ctx, java.lang.String rendererType, javax.faces.component.UIComponent c)
private java.util.Set<javax.faces.event.SystemEventListener> getListeners(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEvent, java.lang.Class<?> sourceClass)
private javax.faces.event.SystemEvent invokeViewListenersFor(javax.faces.context.FacesContext ctx, java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEvent event, java.lang.Object source)
private javax.faces.event.SystemEvent invokeComponentListenersFor(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, java.lang.Object source)
private javax.faces.event.SystemEvent invokeListenersFor(java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEvent event, java.lang.Object source, java.lang.Class<?> sourceBaseType, boolean useSourceLookup) throws javax.faces.event.AbortProcessingException
List
of listeners and invoke any that are relevent
for the specified source.javax.faces.event.AbortProcessingException
- propagated from the listener invocationprivate javax.faces.event.SystemEvent processListeners(java.util.Collection<javax.faces.event.SystemEventListener> listeners, javax.faces.event.SystemEvent event, java.lang.Object source, ApplicationImpl.EventInfo eventInfo)
null
, create the event, and return it.private javax.faces.event.SystemEvent processListenersAccountingForAdds(java.util.List<javax.faces.event.SystemEventListener> listeners, javax.faces.event.SystemEvent event, java.lang.Object source, ApplicationImpl.EventInfo eventInfo)
private boolean originalDiffersFromCopy(java.util.Collection<javax.faces.event.SystemEventListener> original, javax.faces.event.SystemEventListener[] copy)
private javax.faces.event.SystemEventListener[] copyListWithExclusions(java.util.Collection<javax.faces.event.SystemEventListener> original, java.util.Map<javax.faces.event.SystemEventListener,java.lang.Boolean> excludes)
private boolean needsProcessing(javax.faces.context.FacesContext context, java.lang.Class<? extends javax.faces.event.SystemEvent> systemEventClass)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.