public class DefaultActionBeanContextFactory extends Object implements ActionBeanContextFactory
| Modifier and Type | Field and Description |
|---|---|
static 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(HttpServletRequest request,
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 String CONTEXT_CLASS_NAME
public void init(Configuration configuration) throws Exception
init in interface ConfigurableComponentconfiguration - the Configuration object being used by StripesException - should be thrown if the component cannot be configured well enough to use.public ActionBeanContext getContextInstance(HttpServletRequest request, HttpServletResponse response) throws ServletException
getContextInstance in interface ActionBeanContextFactoryrequest - the current HttpServletRequestresponse - the current HttpServletResponseServletException - if the ActionBeanContext class configured cannot be instantiatedprotected Configuration getConfiguration()
protected void setConfiguration(Configuration configuration)
© Copyright 2005-2006, Stripes Development Team.