|
Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle 11g Release 1 (11.1.1.4.0) E10652-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.controller.v2.context.ServletFactoryFinder
public abstract class ServletFactoryFinder
Retrieve a factory from the servlet context.
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
.
Field Summary | |
---|---|
static ServletFactoryFinder |
PAGELIFECYCLE_FACTORY
Retrieve from the ServletContext a PageLifecycleFactory using the initParam ADFPageLifecycleFactory and of type PageLifecycleFactory
This is used by the
PageDefinitionTag
in the Model 1 environment. |
Constructor Summary | |
---|---|
ServletFactoryFinder(java.lang.String factoryName,
java.lang.String initParamName,
java.lang.String contextAttributeName)
|
Method Summary | |
---|---|
java.lang.String |
getContextAttributeName()
Return the servlet context attribute name used to save the instance of the factory for this web application. |
protected abstract java.lang.Object |
getDefaultFactory()
Return the default factory instance |
java.lang.Object |
getFactory(javax.servlet.ServletContext servletContext)
Helper method to instanciate the factory given the ServletContext. |
java.lang.String |
getFactoryName()
|
java.lang.String |
getInitParamName()
Return the servlet context init parameter name used to defined a custom factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ServletFactoryFinder PAGELIFECYCLE_FACTORY
PageLifecycleFactory
This is used by the
PageDefinitionTag
in the Model 1 environment.
Constructor Detail |
---|
public ServletFactoryFinder(java.lang.String factoryName, java.lang.String initParamName, java.lang.String contextAttributeName)
Method Detail |
---|
public final java.lang.Object getFactory(javax.servlet.ServletContext servletContext)
servletContext
-
public java.lang.String getFactoryName()
public java.lang.String getInitParamName()
public java.lang.String getContextAttributeName()
protected abstract java.lang.Object getDefaultFactory()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle 11g Release 1 (11.1.1.4.0) E10652-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |