|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.WebApplication
public class WebApplication
Web application contains all configurations and holds all managers and controllers of one web application. Custom implementations may override this class to enhance several different functionality.
| Field Summary | |
|---|---|
protected PetiteContainer |
madpc
|
static java.lang.String |
MADVOC_CONTAINER_NAME
|
| Constructor Summary | |
|---|---|
WebApplication()
Creates web application. |
|
WebApplication(boolean init)
Creates web application and optionally initializes it. |
|
| Method Summary | ||
|---|---|---|
void |
configure(MadvocConfigurator configurator)
Wires configurator in the the madvoc container and invokes configuration. |
|
protected void |
defineParams(java.util.Properties properties)
Initialized web application parameters. |
|
protected void |
destroy(MadvocConfig madvocConfig)
Invoked on web application destroy. |
|
|
getComponent(java.lang.Class<T> component)
Returns registered component. |
|
java.lang.Object |
getComponent(java.lang.String componentName)
Returns registered component. |
|
protected void |
init(MadvocConfig madvocConfig,
javax.servlet.ServletContext context)
Initializes web application custom configuration. |
|
protected void |
initActions(ActionsManager actionManager)
Hook for manually registered actions. |
|
protected void |
initResults(ResultsManager actionManager)
Hook for manually registered results. |
|
protected void |
initWebApplication()
Initializes web application. |
|
void |
registerComponent(java.lang.Class component)
Registers component using its base name. |
|
void |
registerComponent(java.lang.Object componentInstance)
Registers component instance using its base name. |
|
void |
registerComponent(java.lang.String name,
java.lang.Class component)
|
|
void |
registerComponent(java.lang.String name,
java.lang.Object componentInstance)
Registers component instance and wires it with internal container. |
|
void |
registerMadvocComponents()
Registers default Madvoc components. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MADVOC_CONTAINER_NAME
protected PetiteContainer madpc
| Constructor Detail |
|---|
public WebApplication()
WebApplication(boolean)public WebApplication(boolean init)
initializes it.
| Method Detail |
|---|
protected void initWebApplication()
public final void registerComponent(java.lang.Class component)
base name.
Previously defined component will be removed.
registerComponent(Object)
public final void registerComponent(java.lang.String name,
java.lang.Class component)
public final void registerComponent(java.lang.Object componentInstance)
base name.
Previously defined component will be removed.
registerComponent(Class)
public final void registerComponent(java.lang.String name,
java.lang.Object componentInstance)
public <T> T getComponent(java.lang.Class<T> component)
public java.lang.Object getComponent(java.lang.String componentName)
public void registerMadvocComponents()
madvoc initialization.
protected void defineParams(java.util.Properties properties)
null.
Simple defines parameters for internal container.
protected void init(MadvocConfig madvocConfig,
javax.servlet.ServletContext context)
protected void initActions(ActionsManager actionManager)
protected void initResults(ResultsManager actionManager)
protected void destroy(MadvocConfig madvocConfig)
public void configure(MadvocConfigurator configurator)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||