Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.6.0)

E10652-07

oracle.adf.controller.lifecycle
Class PageLifecycleFactory

java.lang.Object
  extended by oracle.adf.controller.lifecycle.PageLifecycleFactory
Direct Known Subclasses:
DefaultPageLifecycleFactory

Deprecated. Use equivalent classes in oracle.adf.controller.v2

public abstract class PageLifecycleFactory
extends java.lang.Object

A factory to create PageLifecycle instances.

Subclass PageLifecycleFactory to create your own PageLifecycleFactory and provide alternate PageLifecycle instance to all web page. Specify your PageLifecycleFactory subclass in the web-xml file using the ADFPageLifecycleFactory init param:

 <web-app>
   <context-param>
     <param-name>ADFPageLifecycleFactory</param-name>
     <param-value>mypackage.myLifecycleFactory</param-value>
   </context-param>
   ...
 </web-app>
 

If no alternate PageLifecycleFactory is defined in the web-xml, the default is to use DefaultPageLifecycleFactory.

Since:
9.0.5

Field Summary
static java.lang.String INIT_PARAM
          Deprecated. Name of the servlet context init parameter used to defined a customize PageLifecycleFactory.
static java.lang.String LIFECYCLE_FACTORY_ATTR
          Deprecated. Name of the servlet context attribute used to save the instance of the LifecycleFactory for this web application.
 
Constructor Summary
protected PageLifecycleFactory()
          Deprecated.  
 
Method Summary
static PageLifecycleFactory getInstance(javax.servlet.ServletContext servletContext)
          Deprecated. Helper method to instanciate the factory given the ServletContext.
abstract  PageLifecycle getPageLifecycle(java.lang.String path)
          Deprecated. Return a PageLifecycle for given a page path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_PARAM

public static final java.lang.String INIT_PARAM
Deprecated. 
Name of the servlet context init parameter used to defined a customize PageLifecycleFactory. The value of this parameter is the fully qualified class name of the new factory.

See Also:
Constant Field Values

LIFECYCLE_FACTORY_ATTR

public static final java.lang.String LIFECYCLE_FACTORY_ATTR
Deprecated. 
Name of the servlet context attribute used to save the instance of the LifecycleFactory for this web application.

See Also:
Constant Field Values
Constructor Detail

PageLifecycleFactory

protected PageLifecycleFactory()
Deprecated. 
Method Detail

getInstance

public static PageLifecycleFactory getInstance(javax.servlet.ServletContext servletContext)
Deprecated. 
Helper method to instanciate the factory given the ServletContext. The ServletContext possibly contain the class name of a sustitued factory as the value an init parameter named "ADFPageLifecycleFactory". Once the factory class is determined, the instance is cached as a parameter of the servlet context.

Parameters:
servletContext -
Returns:
the instance

getPageLifecycle

public abstract PageLifecycle getPageLifecycle(java.lang.String path)
Deprecated. 
Return a PageLifecycle for given a page path. The customized lifecycle should subclass PageLifecycle to support the base functionality. The page path give the flexibility of returning a different lifecycle for different type of web page like jsp, xml or uix.

Parameters:
path - the web page path
Returns:
a customized PageLifecycle

Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.6.0)

E10652-07

Copyright © 1997, 2011, Oracle. All rights reserved.