Java Doc for Application.java in  » J2EE » myfaces-core-1.2.0 » javax » faces » application » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » myfaces core 1.2.0 » javax.faces.application 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.faces.application.Application

All known Subclasses:   org.apache.myfaces.application.ApplicationImpl,
Application
abstract public class Application (Code)
Holds webapp-wide resources for a JSF application. There is a single one of these for a web application, accessable via
 FacesContext.getCurrentInstance().getApplication()
 
In particular, this provides a factory for UIComponent objects. It also provides convenience methods for creating ValueBinding objects. See Javadoc of JSF Specification
author:
   Manfred Geiler (latest modification by $Author: mbr $)
author:
   Stan Silvert
version:
   $Revision: 511493 $ $Date: 2007-02-25 13:54:46 +0100 (So, 25 Feb 2007) $




Method Summary
abstract public  voidaddComponent(String componentType, String componentClass)
     Define a new mapping from a logical "component type" to an actual java class name. This controls what type is created when method createComponent of this class is called.

Param componentClass must be the fully-qualified class name of some class extending the UIComponent class.

abstract public  voidaddConverter(String converterId, String converterClass)
    
abstract public  voidaddConverter(Class targetClass, String converterClass)
    
public  voidaddELContextListener(ELContextListener listener)
    
public  voidaddELResolver(ELResolver resolver)
    
abstract public  voidaddValidator(String validatorId, String validatorClass)
    
public  UIComponentcreateComponent(ValueExpression componentExpression, FacesContext facesContext, String componentType)
    
abstract public  javax.faces.component.UIComponentcreateComponent(String componentType)
     Create a new UIComponent subclass, using the mappings defined by previous calls to the addComponent method of this class.
abstract public  javax.faces.component.UIComponentcreateComponent(javax.faces.el.ValueBinding componentBinding, javax.faces.context.FacesContext context, String componentType)
     Create an object which has an associating "binding" expression tying the component to a user property.
abstract public  javax.faces.convert.ConvertercreateConverter(String converterId)
    
abstract public  javax.faces.convert.ConvertercreateConverter(Class targetClass)
    
abstract public  javax.faces.el.MethodBindingcreateMethodBinding(String ref, Class[] params)
     Create an object which can be used to invoke an arbitrary method via an EL expression at a later time.
abstract public  javax.faces.validator.ValidatorcreateValidator(String validatorId)
    
abstract public  javax.faces.el.ValueBindingcreateValueBinding(String ref)
     Create an object which can be used to invoke an arbitrary method via an EL expression at a later time.
public  ObjectevaluateExpressionGet(FacesContext context, String expression, Class expectedType)
    
abstract public  javax.faces.event.ActionListenergetActionListener()
    
abstract public  Iterator<String>getComponentTypes()
    
abstract public  Iterator<String>getConverterIds()
    
abstract public  Iterator<Class>getConverterTypes()
    
abstract public  LocalegetDefaultLocale()
    
abstract public  StringgetDefaultRenderKitId()
    
public  ELContextListener[]getELContextListeners()
    
public  ELResolvergetELResolver()
    
public  ExpressionFactorygetExpressionFactory()
    
abstract public  StringgetMessageBundle()
    
abstract public  javax.faces.application.NavigationHandlergetNavigationHandler()
     Return the NavigationHandler object which is responsible for mapping from a logical (viewid, fromAction, outcome) to the URL of a view to be rendered.
abstract public  javax.faces.el.PropertyResolvergetPropertyResolver()
     Get the object used by the VariableResolver to read and write named properties on java beans, Arrays, Lists and Maps.
public  ResourceBundlegetResourceBundle(FacesContext ctx, String name)
    
abstract public  javax.faces.application.StateManagergetStateManager()
    
abstract public  Iterator<Locale>getSupportedLocales()
    
abstract public  Iterator<String>getValidatorIds()
    
abstract public  javax.faces.el.VariableResolvergetVariableResolver()
     Get the object used to resolve expressions of form "#{...}".
abstract public  javax.faces.application.ViewHandlergetViewHandler()
    
public  voidremoveELContextListener(ELContextListener listener)
    
abstract public  voidsetActionListener(javax.faces.event.ActionListener listener)
    
abstract public  voidsetDefaultLocale(Locale locale)
    
abstract public  voidsetDefaultRenderKitId(String renderKitId)
    
abstract public  voidsetMessageBundle(String bundle)
    
abstract public  voidsetNavigationHandler(javax.faces.application.NavigationHandler handler)
    
abstract public  voidsetPropertyResolver(javax.faces.el.PropertyResolver resolver)
    
abstract public  voidsetStateManager(javax.faces.application.StateManager manager)
    
abstract public  voidsetSupportedLocales(Collection<Locale> locales)
    
abstract public  voidsetVariableResolver(javax.faces.el.VariableResolver resolver)
    
abstract public  voidsetViewHandler(javax.faces.application.ViewHandler handler)
    



Method Detail
addComponent
abstract public void addComponent(String componentType, String componentClass)(Code)
Define a new mapping from a logical "component type" to an actual java class name. This controls what type is created when method createComponent of this class is called.

Param componentClass must be the fully-qualified class name of some class extending the UIComponent class. The class must have a default constructor, as instances of it will be created using Class.newInstance.

It is permitted to override a previously defined mapping, ie to call this method multiple times with the same componentType string. The createComponent method will simply use the last defined mapping.




addConverter
abstract public void addConverter(String converterId, String converterClass)(Code)



addConverter
abstract public void addConverter(Class targetClass, String converterClass)(Code)



addELContextListener
public void addELContextListener(ELContextListener listener)(Code)



addELResolver
public void addELResolver(ELResolver resolver)(Code)



addValidator
abstract public void addValidator(String validatorId, String validatorClass)(Code)



createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext facesContext, String componentType) throws FacesException, NullPointerException(Code)



createComponent
abstract public javax.faces.component.UIComponent createComponent(String componentType) throws FacesException(Code)
Create a new UIComponent subclass, using the mappings defined by previous calls to the addComponent method of this class.


throws:
  FacesException - if there is no mapping defined for the specifiedcomponentType, or if an instance of the specified type could not becreated for any reason.




createComponent
abstract public javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding, javax.faces.context.FacesContext context, String componentType) throws FacesException(Code)
Create an object which has an associating "binding" expression tying the component to a user property.

First the specified value-binding is evaluated; if it returns a non-null value then the component "already exists" and so the resulting value is simply returned.

Otherwise a new UIComponent instance is created using the specified componentType, and the new object stored via the provided value-binding before being returned.




createConverter
abstract public javax.faces.convert.Converter createConverter(String converterId)(Code)



createConverter
abstract public javax.faces.convert.Converter createConverter(Class targetClass)(Code)



createMethodBinding
abstract public javax.faces.el.MethodBinding createMethodBinding(String ref, Class[] params) throws ReferenceSyntaxException(Code)
Create an object which can be used to invoke an arbitrary method via an EL expression at a later time. This is similar to createValueBinding except that it can invoke an arbitrary method (with parameters) rather than just get/set a javabean property.

This is used to invoke ActionListener method, and ValueChangeListener methods.




createValidator
abstract public javax.faces.validator.Validator createValidator(String validatorId) throws FacesException(Code)



createValueBinding
abstract public javax.faces.el.ValueBinding createValueBinding(String ref) throws ReferenceSyntaxException(Code)
Create an object which can be used to invoke an arbitrary method via an EL expression at a later time. This is similar to createValueBinding except that it can invoke an arbitrary method (with parameters) rather than just get/set a javabean property.

This is used to invoke ActionListener method, and ValueChangeListener methods.




evaluateExpressionGet
public Object evaluateExpressionGet(FacesContext context, String expression, Class expectedType) throws ELException(Code)



getActionListener
abstract public javax.faces.event.ActionListener getActionListener()(Code)



getComponentTypes
abstract public Iterator<String> getComponentTypes()(Code)



getConverterIds
abstract public Iterator<String> getConverterIds()(Code)



getConverterTypes
abstract public Iterator<Class> getConverterTypes()(Code)



getDefaultLocale
abstract public Locale getDefaultLocale()(Code)



getDefaultRenderKitId
abstract public String getDefaultRenderKitId()(Code)



getELContextListeners
public ELContextListener[] getELContextListeners()(Code)



getELResolver
public ELResolver getELResolver()(Code)



getExpressionFactory
public ExpressionFactory getExpressionFactory()(Code)



getMessageBundle
abstract public String getMessageBundle()(Code)



getNavigationHandler
abstract public javax.faces.application.NavigationHandler getNavigationHandler()(Code)
Return the NavigationHandler object which is responsible for mapping from a logical (viewid, fromAction, outcome) to the URL of a view to be rendered.



getPropertyResolver
abstract public javax.faces.el.PropertyResolver getPropertyResolver()(Code)
Get the object used by the VariableResolver to read and write named properties on java beans, Arrays, Lists and Maps. This object is used by the ValueBinding implementation, and during the process of configuring "managed bean" properties.



getResourceBundle
public ResourceBundle getResourceBundle(FacesContext ctx, String name) throws FacesException, NullPointerException(Code)



getStateManager
abstract public javax.faces.application.StateManager getStateManager()(Code)



getSupportedLocales
abstract public Iterator<Locale> getSupportedLocales()(Code)



getValidatorIds
abstract public Iterator<String> getValidatorIds()(Code)



getVariableResolver
abstract public javax.faces.el.VariableResolver getVariableResolver()(Code)
Get the object used to resolve expressions of form "#{...}".



getViewHandler
abstract public javax.faces.application.ViewHandler getViewHandler()(Code)



removeELContextListener
public void removeELContextListener(ELContextListener listener)(Code)



setActionListener
abstract public void setActionListener(javax.faces.event.ActionListener listener)(Code)



setDefaultLocale
abstract public void setDefaultLocale(Locale locale)(Code)



setDefaultRenderKitId
abstract public void setDefaultRenderKitId(String renderKitId)(Code)



setMessageBundle
abstract public void setMessageBundle(String bundle)(Code)



setNavigationHandler
abstract public void setNavigationHandler(javax.faces.application.NavigationHandler handler)(Code)



setPropertyResolver
abstract public void setPropertyResolver(javax.faces.el.PropertyResolver resolver)(Code)



setStateManager
abstract public void setStateManager(javax.faces.application.StateManager manager)(Code)



setSupportedLocales
abstract public void setSupportedLocales(Collection<Locale> locales)(Code)



setVariableResolver
abstract public void setVariableResolver(javax.faces.el.VariableResolver resolver)(Code)



setViewHandler
abstract public void setViewHandler(javax.faces.application.ViewHandler handler)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.