|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.contextfw.web.application.conf.WebConfiguration
public class WebConfiguration
Configures the application during initialization
| Constructor Summary | |
|---|---|
WebConfiguration()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebConfiguration()
| Method Detail |
|---|
public WebConfiguration addXMLNamespace(String prefix,
String path)
public Map<String,String> getXMLNamespaces()
public WebConfiguration debugMode(boolean debugMode)
public WebConfiguration setViewComponentRootPackages(String... packages)
public WebConfiguration addResourcePaths(String... resources)
Supported possibilities are
resources -
public List<String> getViewComponentRootPackages()
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 WebConfiguration setContextPath(String contextPath)
public WebConfiguration 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()
public <S> WebConfiguration addAttributeJsonSerializer(Class<S> type,
Class<? extends AttributeJsonSerializer<S>> serializer)
S - Type type of sourcetype - The class of typeserializer - The class of serializer
public <S> WebConfiguration addAttributeSerializerClass(Class<S> cl,
Class<? extends AttributeSerializer<S>> serializerClass)
public <S> WebConfiguration addJsonSerializerClass(Class<S> cl,
Class<? extends com.google.gson.JsonSerializer<S>> serializerClass)
public <S> WebConfiguration addJsonDeserializerClass(Class<S> cl,
Class<? extends com.google.gson.JsonDeserializer<S>> serializerClass)
public Set<Map.Entry<Class<?>,Class<? extends com.google.gson.JsonDeserializer<?>>>> getJsonDeserializerClasses()
public Set<Map.Entry<Class<?>,Class<? extends com.google.gson.JsonSerializer<?>>>> getJsonSerializerClasses()
public Set<Map.Entry<Class<?>,Class<? extends AttributeSerializer<?>>>> getAttributeSerializerClasses()
public WebConfiguration setLifecycleListener(Class<? extends LifecycleListener> lifecycleListener)
public Class<? extends LifecycleListener> getLifecycleListener()
public void setRemovalSchedulePeriod(long removalSchedulePeriod)
public long getRemovalSchedulePeriod()
public WebConfiguration setPropertyProvider(Class<? extends PropertyProvider> propertyProvider)
public Class<? extends PropertyProvider> getPropertyProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||