public class Madvoc
extends java.lang.Object
WebApp
.Modifier and Type | Field and Description |
---|---|
protected java.lang.Class |
madvocConfiguratorClass |
protected java.lang.String |
madvocConfiguratorClassName |
static java.lang.String |
PARAM_MADVOC_CONFIGURATOR
Madvoc configurator.
|
static java.lang.String |
PARAM_MADVOC_PARAMS
List of Madvoc params and properties files to be found on classpath.
|
static java.lang.String |
PARAM_MADVOC_WEBAPP
Web application.
|
protected java.lang.String[] |
paramsFiles |
protected javax.servlet.ServletContext |
servletContext |
protected WebApp |
webapp |
protected java.lang.Class |
webAppClass |
protected java.lang.String |
webAppClassName |
Constructor and Description |
---|
Madvoc() |
Modifier and Type | Method and Description |
---|---|
void |
configureWith(javax.servlet.ServletContext servletContext)
Configures Madvoc by reading context init parameters.
|
protected WebApp |
createWebApplication()
Creates
WebApp . |
static Madvoc |
get(javax.servlet.ServletContext servletContext)
Returns
Madvoc instance from servlet context. |
protected Props |
loadMadvocParams(java.lang.String[] patterns)
Loads Madvoc parameters.
|
protected void |
resolveMadvocConfigClass()
Loads Madvoc component that will be used for configuring the user actions.
|
void |
setMadvocConfiguratorClass(java.lang.Class madvocConfiguratorClass)
Sets class that will be used for configuring the user actions.
|
void |
setMadvocConfiguratorClassName(java.lang.String madvocConfiguratorClassName)
Sets the name of the class that is going to be used for configuration of user actions.
|
void |
setParamsFiles(java.lang.String[] paramsFiles) |
void |
setWebAppClass(java.lang.Class webAppClass)
Sets
WebApp class. |
void |
setWebAppClassName(java.lang.String webAppClass)
Sets
WebApp class name. |
WebApp |
startWebApplication(javax.servlet.ServletContext servletContext)
Creates and starts new
Madvoc web application. |
void |
stopWebApplication()
Stops Madvoc web application.
|
WebApp |
webapp()
Returns web application once it is started.
|
public static final java.lang.String PARAM_MADVOC_WEBAPP
public static final java.lang.String PARAM_MADVOC_CONFIGURATOR
public static final java.lang.String PARAM_MADVOC_PARAMS
protected java.lang.String webAppClassName
protected java.lang.Class webAppClass
protected java.lang.String[] paramsFiles
protected java.lang.String madvocConfiguratorClassName
protected java.lang.Class madvocConfiguratorClass
protected WebApp webapp
protected javax.servlet.ServletContext servletContext
public static Madvoc get(javax.servlet.ServletContext servletContext)
Madvoc
instance from servlet context.
May return null
indicating Madvoc
is not yet initialized.public void setWebAppClassName(java.lang.String webAppClass)
WebApp
class name.public void setWebAppClass(java.lang.Class webAppClass)
WebApp
class.public void setMadvocConfiguratorClassName(java.lang.String madvocConfiguratorClassName)
public void setMadvocConfiguratorClass(java.lang.Class madvocConfiguratorClass)
public void setParamsFiles(java.lang.String[] paramsFiles)
public void configureWith(javax.servlet.ServletContext servletContext)
public WebApp webapp()
public WebApp startWebApplication(javax.servlet.ServletContext servletContext)
Madvoc
web application.
Madvoc
instance is stored in servlet context.
Important: servletContext
may be null
,
when web application is run out from container.public void stopWebApplication()
protected Props loadMadvocParams(java.lang.String[] patterns)
Props
is created from the classpath.protected void resolveMadvocConfigClass()
null
, default AutomagicMadvocConfigurator
will be used.Copyright © 2003-present Jodd Team