|
||||||||||
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 |
addConverterConfiguration(java.lang.String converterClassName,
Converter configuration)
|
void |
addELContextListener(javax.el.ELContextListener listener)
|
void |
addELResolver(javax.el.ELResolver resolver)
|
void |
addValidator(java.lang.String validatorId,
java.lang.String validatorClass)
|
UIComponent |
createComponent(java.lang.String componentType)
|
UIComponent |
createComponent(ValueBinding valueBinding,
FacesContext facesContext,
java.lang.String componentType)
Deprecated. Use createComponent(ValueExpression, FacesContext, String) instead. |
UIComponent |
createComponent(javax.el.ValueExpression componentExpression,
FacesContext facesContext,
java.lang.String componentType)
|
Converter |
createConverter(java.lang.Class targetClass)
|
Converter |
createConverter(java.lang.String converterId)
Return an instance of the converter class that has been registered under the specified id. |
MethodBinding |
createMethodBinding(java.lang.String reference,
java.lang.Class[] params)
Deprecated. |
Validator |
createValidator(java.lang.String validatorId)
|
ValueBinding |
createValueBinding(java.lang.String reference)
Deprecated. |
java.lang.Object |
evaluateExpressionGet(FacesContext context,
java.lang.String expression,
java.lang.Class expectedType)
|
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()
|
NavigationHandler |
getNavigationHandler()
|
PropertyResolver |
getPropertyResolver()
Deprecated. |
protected ELResolverBuilder |
getResolverBuilderForFaces()
|
java.util.ResourceBundle |
getResourceBundle(FacesContext facesContext,
java.lang.String name)
|
StateManager |
getStateManager()
|
java.util.Iterator<java.util.Locale> |
getSupportedLocales()
|
java.util.Iterator<java.lang.String> |
getValidatorIds()
|
VariableResolver |
getVariableResolver()
Deprecated. |
ViewHandler |
getViewHandler()
|
void |
removeELContextListener(javax.el.ELContextListener listener)
|
void |
setActionListener(ActionListener actionListener)
|
void |
setDefaultLocale(java.util.Locale locale)
|
void |
setDefaultRenderKitId(java.lang.String defaultRenderKitId)
|
static void |
setInitializingRuntimeConfig(RuntimeConfig config)
|
void |
setMessageBundle(java.lang.String messageBundle)
|
void |
setNavigationHandler(NavigationHandler navigationHandler)
|
void |
setPropertyResolver(PropertyResolver propertyResolver)
Deprecated. |
void |
setResolverBuilderForFaces(ELResolverBuilder factory)
|
void |
setStateManager(StateManager stateManager)
|
void |
setSupportedLocales(java.util.Collection<java.util.Locale> locales)
|
void |
setVariableResolver(VariableResolver variableResolver)
Deprecated. |
void |
setViewHandler(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 static void setInitializingRuntimeConfig(RuntimeConfig config)
public void addELResolver(javax.el.ELResolver resolver)
addELResolver
in class Application
public javax.el.ELResolver getELResolver()
getELResolver
in class Application
protected ELResolverBuilder getResolverBuilderForFaces()
public void setResolverBuilderForFaces(ELResolverBuilder factory)
public java.util.ResourceBundle getResourceBundle(FacesContext facesContext, java.lang.String name) throws FacesException, java.lang.NullPointerException
getResourceBundle
in class Application
FacesException
java.lang.NullPointerException
public UIComponent createComponent(javax.el.ValueExpression componentExpression, FacesContext facesContext, java.lang.String componentType) throws FacesException, java.lang.NullPointerException
createComponent
in class Application
FacesException
java.lang.NullPointerException
public javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory
in class Application
public java.lang.Object evaluateExpressionGet(FacesContext context, java.lang.String expression, java.lang.Class expectedType) throws javax.el.ELException
evaluateExpressionGet
in class Application
javax.el.ELException
public void addELContextListener(javax.el.ELContextListener listener)
addELContextListener
in class Application
public void removeELContextListener(javax.el.ELContextListener listener)
removeELContextListener
in class Application
public javax.el.ELContextListener[] getELContextListeners()
getELContextListeners
in class Application
public void setActionListener(ActionListener actionListener)
setActionListener
in class Application
public ActionListener getActionListener()
getActionListener
in class Application
public java.util.Iterator<java.lang.String> getComponentTypes()
getComponentTypes
in class Application
public java.util.Iterator<java.lang.String> getConverterIds()
getConverterIds
in class Application
public java.util.Iterator<java.lang.Class> getConverterTypes()
getConverterTypes
in class Application
public void setDefaultLocale(java.util.Locale locale)
setDefaultLocale
in class Application
public java.util.Locale getDefaultLocale()
getDefaultLocale
in class Application
public void setMessageBundle(java.lang.String messageBundle)
setMessageBundle
in class Application
public java.lang.String getMessageBundle()
getMessageBundle
in class Application
public void setNavigationHandler(NavigationHandler navigationHandler)
setNavigationHandler
in class Application
public NavigationHandler getNavigationHandler()
getNavigationHandler
in class Application
@Deprecated public void setPropertyResolver(PropertyResolver propertyResolver)
setPropertyResolver
in class Application
@Deprecated public PropertyResolver getPropertyResolver()
getPropertyResolver
in class Application
public void setSupportedLocales(java.util.Collection<java.util.Locale> locales)
setSupportedLocales
in class Application
public java.util.Iterator<java.util.Locale> getSupportedLocales()
getSupportedLocales
in class Application
public java.util.Iterator<java.lang.String> getValidatorIds()
getValidatorIds
in class Application
@Deprecated public void setVariableResolver(VariableResolver variableResolver)
setVariableResolver
in class Application
@Deprecated public VariableResolver getVariableResolver()
getVariableResolver
in class Application
public void setViewHandler(ViewHandler viewHandler)
setViewHandler
in class Application
public ViewHandler getViewHandler()
getViewHandler
in class Application
public void addComponent(java.lang.String componentType, java.lang.String componentClassName)
addComponent
in class Application
public void addConverter(java.lang.String converterId, java.lang.String converterClass)
addConverter
in class Application
public void addConverter(java.lang.Class targetClass, java.lang.String converterClass)
addConverter
in class Application
public void addConverterConfiguration(java.lang.String converterClassName, Converter configuration)
public void addValidator(java.lang.String validatorId, java.lang.String validatorClass)
addValidator
in class Application
public UIComponent createComponent(java.lang.String componentType) throws FacesException
createComponent
in class Application
FacesException
@Deprecated public UIComponent createComponent(ValueBinding valueBinding, FacesContext facesContext, java.lang.String componentType) throws FacesException
createComponent
in class Application
FacesException
public 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 Application
public Converter createConverter(java.lang.Class targetClass)
createConverter
in class Application
@Deprecated public MethodBinding createMethodBinding(java.lang.String reference, java.lang.Class[] params) throws ReferenceSyntaxException
createMethodBinding
in class Application
ReferenceSyntaxException
public Validator createValidator(java.lang.String validatorId) throws FacesException
createValidator
in class Application
FacesException
public ValueBinding createValueBinding(java.lang.String reference) throws ReferenceSyntaxException
createValueBinding
in class Application
ReferenceSyntaxException
public java.lang.String getDefaultRenderKitId()
getDefaultRenderKitId
in class Application
public void setDefaultRenderKitId(java.lang.String defaultRenderKitId)
setDefaultRenderKitId
in class Application
public StateManager getStateManager()
getStateManager
in class Application
public void setStateManager(StateManager stateManager)
setStateManager
in class Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |