ApplicationFactory (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.faces.application Class ApplicationFactory

java.lang.Object
  extended by javax.faces.application.ApplicationFactory

public abstract class ApplicationFactory
extends Object

ApplicationFactory is a factory object that creates (if needed) and returns Application instances. Implementations of JavaServer Faces must provide at least a default implementation of Application.

There must be one ApplicationFactory instance per web application that is utilizing JavaServer Faces. This instance can be acquired, in a portable manner, by calling:

   ApplicationFactory factory = (ApplicationFactory)
    FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
 


构造器摘要
ApplicationFactory()
           
 
方法摘要
abstract  Application getApplication()
          Create (if needed) and return an Application instance for this web application.
abstract  void setApplication(Application application)
          Replace the Application instance that will be returned for this web application.
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

ApplicationFactory

public ApplicationFactory()
方法详细信息

getApplication

public abstract Application getApplication()

Create (if needed) and return an Application instance for this web application.


setApplication

public abstract void setApplication(Application application)

Replace the Application instance that will be returned for this web application.

参数:
application - The replacement Application instance
抛出异常:
NullPointerException - if application is null.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.