public class DefaultActionBeanContextFactory extends java.lang.Object implements ActionBeanContextFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_CLASS_NAME
The name of the configuration property used for the context class name.
|
Constructor and Description |
---|
DefaultActionBeanContextFactory() |
Modifier and Type | Method and Description |
---|---|
protected Configuration |
getConfiguration() |
ActionBeanContext |
getContextInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns a new instance of the configured class, or ActionBeanContext if a class is
not specified.
|
void |
init(Configuration configuration)
Stores the configuration, and looks up the ActionBeanContext class specified.
|
protected void |
setConfiguration(Configuration configuration) |
public static final java.lang.String CONTEXT_CLASS_NAME
public void init(Configuration configuration) throws java.lang.Exception
init
in interface ConfigurableComponent
configuration
- the Configuration object being used by Stripesjava.lang.Exception
- should be thrown if the component cannot be configured well enough to use.public ActionBeanContext getContextInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
getContextInstance
in interface ActionBeanContextFactory
request
- the current HttpServletRequestresponse
- the current HttpServletResponsejavax.servlet.ServletException
- if the ActionBeanContext class configured cannot be instantiatedprotected Configuration getConfiguration()
protected void setConfiguration(Configuration configuration)
? Copyright 2005-2006, Stripes Development Team.