Save This Page
Home » mojarra-1.2_09-b02-FCS-source » com.sun.faces.application » [javadoc | source]
com.sun.faces.application
public class: ApplicationImpl [javadoc | source]
java.lang.Object
   javax.faces.application.Application
      com.sun.faces.application.ApplicationImpl

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.
Field Summary
protected  String defaultRenderKitId     
Constructor:
 public ApplicationImpl() 
Method from com.sun.faces.application.ApplicationImpl Summary:
addComponent,   addConverter,   addConverter,   addELContextListener,   addELResolver,   addValidator,   createComponent,   createComponent,   createComponent,   createConverter,   createConverter,   createConverterBasedOnClass,   createMethodBinding,   createValidator,   createValueBinding,   evaluateExpressionGet,   getActionListener,   getApplicationELResolvers,   getComponentTypes,   getConverterIds,   getConverterTypes,   getDefaultLocale,   getDefaultRenderKitId,   getELContextListeners,   getELResolver,   getExpressionFactory,   getMessageBundle,   getNavigationHandler,   getPropertyResolver,   getResourceBundle,   getStateManager,   getSupportedLocales,   getValidatorIds,   getVariableResolver,   getViewHandler,   newConverter,   newThing,   removeELContextListener,   setActionListener,   setDefaultLocale,   setDefaultRenderKitId,   setMessageBundle,   setNavigationHandler,   setPropertyResolver,   setStateManager,   setSupportedLocales,   setVariableResolver,   setViewHandler
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.faces.application.ApplicationImpl Detail:
 public  void addComponent(String componentType,
    String componentClass) 
 public  void addConverter(String converterId,
    String converterClass) 
 public  void addConverter(Class targetClass,
    String converterClass) 
 public  void addELContextListener(ELContextListener listener) 
 public  void addELResolver(ELResolver resolver) 
 public  void addValidator(String validatorId,
    String validatorClass) 
 public UIComponent createComponent(String componentType) throws FacesException 
 public UIComponent createComponent(ValueExpression componentExpression,
    FacesContext context,
    String componentType) throws FacesException 
 public UIComponent createComponent(ValueBinding componentBinding,
    FacesContext context,
    String componentType) throws FacesException 
 public Converter createConverter(String converterId) 
 public Converter createConverter(Class targetClass) 
 protected Converter createConverterBasedOnClass(Class targetClass,
    Class baseClass) 
 public MethodBinding createMethodBinding(String ref,
    Class[] params) 
 public Validator createValidator(String validatorId) throws FacesException 
 public ValueBinding createValueBinding(String ref) throws ReferenceSyntaxException 
 public Object evaluateExpressionGet(FacesContext context,
    String expression,
    Class expectedType) throws ELException 
 public ActionListener getActionListener() 
 public List getApplicationELResolvers() 
 public Iterator getComponentTypes() 
 public Iterator getConverterIds() 
 public Iterator getConverterTypes() 
 public Locale getDefaultLocale() 
 public String getDefaultRenderKitId() 
 public ELContextListener[] getELContextListeners() 
 public ELResolver getELResolver() 
 public ExpressionFactory getExpressionFactory() 
 public String getMessageBundle() 
 public NavigationHandler getNavigationHandler() 
    Return the NavigationHandler instance installed present in this application instance. If an instance does not exist, it will be created.
 public PropertyResolver getPropertyResolver() 
 public ResourceBundle getResourceBundle(FacesContext context,
    String var) 
 public StateManager getStateManager() 
 public Iterator getSupportedLocales() 
 public Iterator getValidatorIds() 
 public VariableResolver getVariableResolver() 
 public ViewHandler getViewHandler() 
 protected Object newConverter(Class key,
    Map map,
    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.

 protected Object newThing(String key,
    Map 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.

 public  void removeELContextListener(ELContextListener listener) 
 public synchronized  void setActionListener(ActionListener listener) 
 public synchronized  void setDefaultLocale(Locale locale) 
 public  void setDefaultRenderKitId(String renderKitId) 
 public synchronized  void setMessageBundle(String messageBundle) 
 public synchronized  void setNavigationHandler(NavigationHandler handler) 
    Set a NavigationHandler instance for this application instance.
 public  void setPropertyResolver(PropertyResolver resolver) 
 public synchronized  void setStateManager(StateManager manager) 
 public synchronized  void setSupportedLocales(Collection newLocales) 
 public  void setVariableResolver(VariableResolver resolver) 
 public synchronized  void setViewHandler(ViewHandler handler)