|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.application.Application
org.apache.myfaces.application.ApplicationImpl
public class ApplicationImpl
DOCUMENT ME!
| Constructor Summary | |
|---|---|
ApplicationImpl()
|
|
| Method Summary | |
|---|---|
void |
addComponent(java.lang.String componentType,
java.lang.String componentClassName)
|
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 valueBinding,
javax.faces.context.FacesContext facesContext,
java.lang.String componentType)
Deprecated. Use createComponent(ValueExpression, FacesContext, String) instead. |
javax.faces.component.UIComponent |
createComponent(javax.el.ValueExpression componentExpression,
javax.faces.context.FacesContext facesContext,
java.lang.String componentType)
|
javax.faces.convert.Converter |
createConverter(java.lang.Class targetClass)
|
javax.faces.convert.Converter |
createConverter(java.lang.String converterId)
Return an instance of the converter class that has been registered under the specified id. |
javax.faces.el.MethodBinding |
createMethodBinding(java.lang.String reference,
java.lang.Class[] params)
Deprecated. |
javax.faces.validator.Validator |
createValidator(java.lang.String validatorId)
|
javax.faces.el.ValueBinding |
createValueBinding(java.lang.String reference)
Deprecated. |
java.lang.Object |
evaluateExpressionGet(javax.faces.context.FacesContext context,
java.lang.String expression,
java.lang.Class expectedType)
|
javax.faces.event.ActionListener |
getActionListener()
|
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()
|
javax.faces.el.PropertyResolver |
getPropertyResolver()
Deprecated. |
protected ELResolverBuilder |
getResolverBuilderForFaces()
|
java.util.ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext facesContext,
java.lang.String name)
|
javax.faces.application.StateManager |
getStateManager()
|
java.util.Iterator<java.util.Locale> |
getSupportedLocales()
|
java.util.Iterator<java.lang.String> |
getValidatorIds()
|
javax.faces.el.VariableResolver |
getVariableResolver()
Deprecated. |
javax.faces.application.ViewHandler |
getViewHandler()
|
void |
removeELContextListener(javax.el.ELContextListener listener)
|
void |
setActionListener(javax.faces.event.ActionListener actionListener)
|
void |
setDefaultLocale(java.util.Locale locale)
|
void |
setDefaultRenderKitId(java.lang.String defaultRenderKitId)
|
void |
setMessageBundle(java.lang.String messageBundle)
|
void |
setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler)
|
void |
setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)
Deprecated. |
void |
setResolverBuilderForFaces(ELResolverBuilder factory)
|
void |
setStateManager(javax.faces.application.StateManager stateManager)
|
void |
setSupportedLocales(java.util.Collection<java.util.Locale> locales)
|
void |
setVariableResolver(javax.faces.el.VariableResolver variableResolver)
Deprecated. |
void |
setViewHandler(javax.faces.application.ViewHandler viewHandler)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationImpl()
| Method Detail |
|---|
public final void addELResolver(javax.el.ELResolver resolver)
addELResolver in class javax.faces.application.Applicationpublic final javax.el.ELResolver getELResolver()
getELResolver in class javax.faces.application.Applicationprotected final ELResolverBuilder getResolverBuilderForFaces()
public final void setResolverBuilderForFaces(ELResolverBuilder factory)
public final java.util.ResourceBundle getResourceBundle(javax.faces.context.FacesContext facesContext,
java.lang.String name)
throws javax.faces.FacesException,
java.lang.NullPointerException
getResourceBundle in class javax.faces.application.Applicationjavax.faces.FacesException
java.lang.NullPointerException
public final javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression,
javax.faces.context.FacesContext facesContext,
java.lang.String componentType)
throws javax.faces.FacesException,
java.lang.NullPointerException
createComponent in class javax.faces.application.Applicationjavax.faces.FacesException
java.lang.NullPointerExceptionpublic final javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory in class javax.faces.application.Application
public final 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.Applicationjavax.el.ELExceptionpublic final void addELContextListener(javax.el.ELContextListener listener)
addELContextListener in class javax.faces.application.Applicationpublic final void removeELContextListener(javax.el.ELContextListener listener)
removeELContextListener in class javax.faces.application.Applicationpublic final javax.el.ELContextListener[] getELContextListeners()
getELContextListeners in class javax.faces.application.Applicationpublic final void setActionListener(javax.faces.event.ActionListener actionListener)
setActionListener in class javax.faces.application.Applicationpublic final javax.faces.event.ActionListener getActionListener()
getActionListener in class javax.faces.application.Applicationpublic final java.util.Iterator<java.lang.String> getComponentTypes()
getComponentTypes in class javax.faces.application.Applicationpublic final java.util.Iterator<java.lang.String> getConverterIds()
getConverterIds in class javax.faces.application.Applicationpublic final java.util.Iterator<java.lang.Class> getConverterTypes()
getConverterTypes in class javax.faces.application.Applicationpublic final void setDefaultLocale(java.util.Locale locale)
setDefaultLocale in class javax.faces.application.Applicationpublic final java.util.Locale getDefaultLocale()
getDefaultLocale in class javax.faces.application.Applicationpublic final void setMessageBundle(java.lang.String messageBundle)
setMessageBundle in class javax.faces.application.Applicationpublic final java.lang.String getMessageBundle()
getMessageBundle in class javax.faces.application.Applicationpublic final void setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler)
setNavigationHandler in class javax.faces.application.Applicationpublic final javax.faces.application.NavigationHandler getNavigationHandler()
getNavigationHandler in class javax.faces.application.Application@Deprecated public final void setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)
setPropertyResolver in class javax.faces.application.Application@Deprecated public final javax.faces.el.PropertyResolver getPropertyResolver()
getPropertyResolver in class javax.faces.application.Applicationpublic final void setSupportedLocales(java.util.Collection<java.util.Locale> locales)
setSupportedLocales in class javax.faces.application.Applicationpublic final java.util.Iterator<java.util.Locale> getSupportedLocales()
getSupportedLocales in class javax.faces.application.Applicationpublic final java.util.Iterator<java.lang.String> getValidatorIds()
getValidatorIds in class javax.faces.application.Application@Deprecated public final void setVariableResolver(javax.faces.el.VariableResolver variableResolver)
setVariableResolver in class javax.faces.application.Application@Deprecated public final javax.faces.el.VariableResolver getVariableResolver()
getVariableResolver in class javax.faces.application.Applicationpublic final void setViewHandler(javax.faces.application.ViewHandler viewHandler)
setViewHandler in class javax.faces.application.Applicationpublic final javax.faces.application.ViewHandler getViewHandler()
getViewHandler in class javax.faces.application.Application
public final void addComponent(java.lang.String componentType,
java.lang.String componentClassName)
addComponent in class javax.faces.application.Application
public final void addConverter(java.lang.String converterId,
java.lang.String converterClass)
addConverter in class javax.faces.application.Application
public final void addConverter(java.lang.Class targetClass,
java.lang.String converterClass)
addConverter in class javax.faces.application.Application
public final void addValidator(java.lang.String validatorId,
java.lang.String validatorClass)
addValidator in class javax.faces.application.Application
public final javax.faces.component.UIComponent createComponent(java.lang.String componentType)
throws javax.faces.FacesException
createComponent in class javax.faces.application.Applicationjavax.faces.FacesException
@Deprecated
public final javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding valueBinding,
javax.faces.context.FacesContext facesContext,
java.lang.String componentType)
throws javax.faces.FacesException
createComponent in class javax.faces.application.Applicationjavax.faces.FacesExceptionpublic final javax.faces.convert.Converter createConverter(java.lang.String converterId)
Converters are registered via faces-config.xml files, and can also be registered via the addConverter(String id, Class converterClass) method on this class. Here the the appropriate Class definition is found, then an instance is created and returned.
A converter registered via a config file can have any number of nested attribute or property tags. The JSF specification is very vague about what effect these nested tags have. This method ignores nested attribute definitions, but for each nested property tag the corresponding setter is invoked on the new Converter instance passing the property's defaultValuer. Basic typeconversion is done so the target properties on the Converter instance can be String, int, boolean, etc. Note that:
Note that this method is most commonly called from the standard f:attribute tag. As an alternative, most components provide a "converter" attribute which uses an EL expression to create a Converter instance, in which case this method is not invoked at all. The converter attribute allows the returned Converter instance to be configured via normal dependency-injection, and is generally a better choice than using this method.
createConverter in class javax.faces.application.Applicationpublic final javax.faces.convert.Converter createConverter(java.lang.Class targetClass)
createConverter in class javax.faces.application.Application
@Deprecated
public final javax.faces.el.MethodBinding createMethodBinding(java.lang.String reference,
java.lang.Class[] params)
throws javax.faces.el.ReferenceSyntaxException
createMethodBinding in class javax.faces.application.Applicationjavax.faces.el.ReferenceSyntaxException
public final javax.faces.validator.Validator createValidator(java.lang.String validatorId)
throws javax.faces.FacesException
createValidator in class javax.faces.application.Applicationjavax.faces.FacesException
public final javax.faces.el.ValueBinding createValueBinding(java.lang.String reference)
throws javax.faces.el.ReferenceSyntaxException
createValueBinding in class javax.faces.application.Applicationjavax.faces.el.ReferenceSyntaxExceptionpublic final java.lang.String getDefaultRenderKitId()
getDefaultRenderKitId in class javax.faces.application.Applicationpublic final void setDefaultRenderKitId(java.lang.String defaultRenderKitId)
setDefaultRenderKitId in class javax.faces.application.Applicationpublic final javax.faces.application.StateManager getStateManager()
getStateManager in class javax.faces.application.Applicationpublic final void setStateManager(javax.faces.application.StateManager stateManager)
setStateManager in class javax.faces.application.Application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||