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