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 | Field and Description |
---|---|
protected java.lang.String |
defaultRenderKitId |
Constructor and Description |
---|
ApplicationImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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 |
addELContextListener(javax.el.ELContextListener listener) |
void |
addELResolver(javax.el.ELResolver resolver) |
void |
addValidator(java.lang.String validatorId,
java.lang.String validatorClass) |
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.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) |
java.lang.Object |
evaluateExpressionGet(javax.faces.context.FacesContext context,
java.lang.String expression,
java.lang.Class expectedType) |
javax.faces.event.ActionListener |
getActionListener() |
java.util.List<javax.el.ELResolver> |
getApplicationELResolvers() |
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() |
javax.el.ELContextListener[] |
getELContextListeners() |
javax.el.ELResolver |
getELResolver() |
javax.el.ExpressionFactory |
getExpressionFactory() |
java.lang.String |
getMessageBundle() |
javax.faces.application.NavigationHandler |
getNavigationHandler()
Return the
NavigationHandler instance
installed present in this application instance. |
javax.faces.el.PropertyResolver |
getPropertyResolver() |
java.util.ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext context,
java.lang.String var) |
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() |
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.
|
protected java.lang.Object |
newThing(java.lang.String key,
java.util.Map<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.
|
void |
removeELContextListener(javax.el.ELContextListener listener) |
void |
setActionListener(javax.faces.event.ActionListener listener) |
void |
setDefaultLocale(java.util.Locale locale) |
void |
setDefaultRenderKitId(java.lang.String renderKitId) |
void |
setMessageBundle(java.lang.String messageBundle) |
void |
setNavigationHandler(javax.faces.application.NavigationHandler handler)
Set a
NavigationHandler instance for this
application instance. |
void |
setPropertyResolver(javax.faces.el.PropertyResolver resolver) |
void |
setStateManager(javax.faces.application.StateManager manager) |
void |
setSupportedLocales(java.util.Collection<java.util.Locale> newLocales) |
void |
setVariableResolver(javax.faces.el.VariableResolver resolver) |
void |
setViewHandler(javax.faces.application.ViewHandler handler) |
public void addELContextListener(javax.el.ELContextListener listener)
addELContextListener
in class javax.faces.application.Application
public void removeELContextListener(javax.el.ELContextListener listener)
removeELContextListener
in class javax.faces.application.Application
public javax.el.ELContextListener[] getELContextListeners()
getELContextListeners
in class javax.faces.application.Application
public javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory
in class javax.faces.application.Application
public java.lang.Object evaluateExpressionGet(javax.faces.context.FacesContext context, java.lang.String expression, java.lang.Class expectedType) throws javax.el.ELException
evaluateExpressionGet
in class javax.faces.application.Application
javax.el.ELException
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
public void addELResolver(javax.el.ELResolver resolver)
addELResolver
in class javax.faces.application.Application
public java.util.List<javax.el.ELResolver> getApplicationELResolvers()
public javax.faces.event.ActionListener getActionListener()
getActionListener
in class javax.faces.application.Application
public javax.faces.application.ViewHandler getViewHandler()
getViewHandler
in class javax.faces.application.Application
public void setViewHandler(javax.faces.application.ViewHandler handler)
setViewHandler
in class javax.faces.application.Application
public javax.faces.application.StateManager getStateManager()
getStateManager
in class javax.faces.application.Application
public void setStateManager(javax.faces.application.StateManager manager)
setStateManager
in class javax.faces.application.Application
public void setActionListener(javax.faces.event.ActionListener listener)
setActionListener
in class javax.faces.application.Application
public javax.faces.application.NavigationHandler getNavigationHandler()
NavigationHandler
instance
installed present in this application instance. If
an instance does not exist, it will be created.getNavigationHandler
in class javax.faces.application.Application
public void setNavigationHandler(javax.faces.application.NavigationHandler handler)
NavigationHandler
instance for this
application instance.setNavigationHandler
in class javax.faces.application.Application
handler
- The NavigationHandler
instance.public javax.faces.el.PropertyResolver getPropertyResolver()
getPropertyResolver
in class javax.faces.application.Application
public java.util.ResourceBundle getResourceBundle(javax.faces.context.FacesContext context, java.lang.String var)
getResourceBundle
in class javax.faces.application.Application
public void setPropertyResolver(javax.faces.el.PropertyResolver resolver)
setPropertyResolver
in class javax.faces.application.Application
public javax.faces.el.MethodBinding createMethodBinding(java.lang.String ref, java.lang.Class[] params)
createMethodBinding
in class javax.faces.application.Application
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
public javax.faces.el.VariableResolver getVariableResolver()
getVariableResolver
in class javax.faces.application.Application
public void setVariableResolver(javax.faces.el.VariableResolver resolver)
setVariableResolver
in class javax.faces.application.Application
public void addComponent(java.lang.String componentType, java.lang.String componentClass)
addComponent
in class javax.faces.application.Application
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.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 java.util.Iterator<java.lang.String> getComponentTypes()
getComponentTypes
in class javax.faces.application.Application
public void addConverter(java.lang.String converterId, java.lang.String converterClass)
addConverter
in class javax.faces.application.Application
public void addConverter(java.lang.Class targetClass, java.lang.String converterClass)
addConverter
in class javax.faces.application.Application
public javax.faces.convert.Converter createConverter(java.lang.String converterId)
createConverter
in class javax.faces.application.Application
public javax.faces.convert.Converter createConverter(java.lang.Class targetClass)
createConverter
in class javax.faces.application.Application
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
public java.util.Iterator<java.lang.Class> getConverterTypes()
getConverterTypes
in class javax.faces.application.Application
public java.util.Iterator<java.util.Locale> getSupportedLocales()
getSupportedLocales
in class javax.faces.application.Application
public void setSupportedLocales(java.util.Collection<java.util.Locale> newLocales)
setSupportedLocales
in class javax.faces.application.Application
public java.util.Locale getDefaultLocale()
getDefaultLocale
in class javax.faces.application.Application
public void setDefaultLocale(java.util.Locale locale)
setDefaultLocale
in class javax.faces.application.Application
public java.lang.String getDefaultRenderKitId()
getDefaultRenderKitId
in class javax.faces.application.Application
public void setDefaultRenderKitId(java.lang.String renderKitId)
setDefaultRenderKitId
in class javax.faces.application.Application
public void addValidator(java.lang.String validatorId, java.lang.String validatorClass)
addValidator
in class javax.faces.application.Application
public javax.faces.validator.Validator createValidator(java.lang.String validatorId) throws javax.faces.FacesException
createValidator
in class javax.faces.application.Application
javax.faces.FacesException
public java.util.Iterator<java.lang.String> getValidatorIds()
getValidatorIds
in class javax.faces.application.Application
public void setMessageBundle(java.lang.String messageBundle)
setMessageBundle
in class javax.faces.application.Application
public java.lang.String getMessageBundle()
getMessageBundle
in class javax.faces.application.Application
protected java.lang.Object newThing(java.lang.String key, java.util.Map<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.Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.