public abstract class ServletFactoryFinder
extends java.lang.Object
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
.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ServletFactoryFinder(java.lang.String factoryName,
java.lang.String initParamName,
java.lang.String contextAttributeName) |
Modifier and Type | Method and Description |
---|---|
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
|
public static final ServletFactoryFinder PAGELIFECYCLE_FACTORY
PageLifecycleFactory
This is used by the
PageDefinitionTag
in the Model 1 environment.public ServletFactoryFinder(java.lang.String factoryName, java.lang.String initParamName, java.lang.String contextAttributeName)
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()