|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.contextfw.web.application.ModuleConfiguration
public class ModuleConfiguration
Configures the application during initalization
| Constructor Summary | |
|---|---|
ModuleConfiguration()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleConfiguration()
| Method Detail |
|---|
public ModuleConfiguration attributeHandlerClass(Class<? extends AttributeHandler> attributeHandler)
public Class<? extends AttributeHandler> getAttributeHandlerClass()
public ModuleConfiguration debugMode(boolean debugMode)
public ModuleConfiguration initializerRootPackages(String... packages)
public ModuleConfiguration addResourcePaths(String... resources)
Supported possibilities are
resources -
public List<String> getInitializerRootPackages()
public List<String> getResourcePaths()
public boolean isDebugMode()
public void setXmlParamName(String xmlParamName)
public String getXmlParamName()
public void setLogXML(boolean logXML)
public boolean isLogXML()
public void setResourcesPrefix(String resourcesPrefix)
That is javascript and css-files
resourcesPrefix - public String getResourcesPrefix()
public void setPollTime(long pollTime)
public long getPollTime()
public void setMaxInactivity(long maxInactivity)
public long getMaxInactivity()
public void setErrorTime(long errorTime)
public long getErrorTime()
public String getContextPath()
public ModuleConfiguration setContextPath(String contextPath)
public ModuleConfiguration setTransformerCount(int transformerCount)
Transformers are used to transform DOM-tree via XSL to XHTML.
This methods sets the number of that can be used concurrently. This requirement comes from the fact that transformers are not thread-safe.
By default the number of transformers is 1 and is usable in development. Hoverer for production the number should be increased, but there is a down side for large number of transformer, which is memory consumption. Templates must be loaded for every transformer and they cannot be shared.
transformerCount - The number of transformers. Minimum is 1.
public int getTransformerCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||