|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.config.jmx.WroConfiguration
public final class WroConfiguration
Defines MBean which manage configuration. There should be only one instance of this object in the application and it should be accessible even outside of the request cycle.
Field Summary | |
---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT
Default value for connectionTimeout property. |
static String |
DEFAULT_ENCODING
Default encoding to use. |
Constructor Summary | |
---|---|
WroConfiguration()
|
Method Summary | |
---|---|
void |
destroy()
Perform the cleanup, clear the listeners. |
boolean |
equals(Object obj)
|
long |
getCacheUpdatePeriod()
|
int |
getConnectionTimeout()
|
String |
getEncoding()
|
String |
getHeader()
|
String |
getMbeanName()
|
long |
getModelUpdatePeriod()
|
static String |
getObjectName()
|
long |
getResourceWatcherUpdatePeriod()
|
String |
getWroManagerClassName()
|
boolean |
isCacheGzippedContent()
|
boolean |
isDebug()
|
boolean |
isDisableCache()
|
boolean |
isGzipEnabled()
|
boolean |
isIgnoreEmptyGroup()
|
boolean |
isIgnoreFailingProcessor()
|
boolean |
isIgnoreMissingResources()
|
boolean |
isJmxEnabled()
|
boolean |
isParallelPreprocessing()
|
void |
registerCacheUpdatePeriodChangeListener(PropertyChangeListener listener)
Register a listener which is notified when the modelUpdate period value is changed. |
void |
registerModelUpdatePeriodChangeListener(PropertyChangeListener listener)
Register a listener which is notified when the modelUpdate period value is changed. |
void |
reloadCache()
Force reload of the cache. |
void |
reloadModel()
Force reload of the model. |
void |
setCacheGzippedContent(boolean cacheGzippedContent)
Whether gzipped content should be cached or not. |
void |
setCacheUpdatePeriod(long period)
Set after how many seconds the cache containing merged resources by group name should be updated. |
void |
setConnectionTimeout(int connectionTimeout)
Timeout (milliseconds) of the url connection for external resources. |
void |
setDebug(boolean debug)
Set the debug mode. |
void |
setDisableCache(boolean disableCache)
|
void |
setEncoding(String encoding)
Encoding to use when writing the processed result into the output stream. |
void |
setGzipEnabled(boolean enable)
|
void |
setHeader(String header)
|
void |
setIgnoreEmptyGroup(boolean ignoreEmptyGroup)
|
void |
setIgnoreFailingProcessor(boolean ignoreFailingProcessor)
|
void |
setIgnoreMissingResources(boolean ignoreMissingResources)
|
void |
setJmxEnabled(boolean jmxEnabled)
|
void |
setMbeanName(String mbeanName)
|
void |
setModelUpdatePeriod(long period)
Set after how many seconds the wro model should be updated. |
void |
setParallelPreprocessing(boolean parallelPreprocessing)
|
void |
setResourceWatcherUpdatePeriod(long resourceWatcherUpdatePeriod)
Set after how many seconds the resource change detection is performed.. |
void |
setWroManagerClassName(String wroManagerClassName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_ENCODING
public static int DEFAULT_CONNECTION_TIMEOUT
Constructor Detail |
---|
public WroConfiguration()
Method Detail |
---|
public static String getObjectName()
public long getCacheUpdatePeriod()
getCacheUpdatePeriod
in interface WroConfigurationMBean
public long getModelUpdatePeriod()
getModelUpdatePeriod
in interface WroConfigurationMBean
public void setCacheUpdatePeriod(long period)
setCacheUpdatePeriod
in interface WroConfigurationMBean
period
- number of seconds. Zero or less, means never.public void setModelUpdatePeriod(long period)
setModelUpdatePeriod
in interface WroConfigurationMBean
period
- number of seconds. Zero or less, means never.public boolean isGzipEnabled()
isGzipEnabled
in interface WroConfigurationMBean
public void setGzipEnabled(boolean enable)
setGzipEnabled
in interface WroConfigurationMBean
enable
- if true, gzip will be enabled, otherwise will be disabled.public void reloadCache()
reloadCache
in interface WroConfigurationMBean
public void reloadModel()
reloadModel
in interface WroConfigurationMBean
public void registerModelUpdatePeriodChangeListener(PropertyChangeListener listener)
listener
- to add.public void registerCacheUpdatePeriodChangeListener(PropertyChangeListener listener)
listener
- to add.public boolean isDebug()
isDebug
in interface WroConfigurationMBean
public void setDebug(boolean debug)
WroConfigurationMBean
setDebug
in interface WroConfigurationMBean
debug
- the debug to setpublic boolean isIgnoreMissingResources()
isIgnoreMissingResources
in interface WroConfigurationMBean
public void setIgnoreMissingResources(boolean ignoreMissingResources)
setIgnoreMissingResources
in interface WroConfigurationMBean
ignoreMissingResources
- the ignoreMissingResources to setpublic boolean isDisableCache()
public void setDisableCache(boolean disableCache)
disableCache
- the disableCache to setpublic boolean isJmxEnabled()
public void setJmxEnabled(boolean jmxEnabled)
jmxEnabled
- the jmxEnabled to setpublic boolean isCacheGzippedContent()
isCacheGzippedContent
in interface WroConfigurationMBean
public void setCacheGzippedContent(boolean cacheGzippedContent)
WroConfigurationMBean
setCacheGzippedContent
in interface WroConfigurationMBean
cacheGzippedContent
- the cacheGzippedContent to setpublic void destroy()
public String getEncoding()
getEncoding
in interface WroConfigurationMBean
public void setEncoding(String encoding)
WroConfigurationMBean
setEncoding
in interface WroConfigurationMBean
encoding
- the encoding to setpublic String getWroManagerClassName()
public void setWroManagerClassName(String wroManagerClassName)
wroManagerClassName
- the wroManagerClassName to setpublic String getMbeanName()
public void setMbeanName(String mbeanName)
mbeanName
- the mbeanName to setpublic String getHeader()
public void setHeader(String header)
header
- the header to setpublic int getConnectionTimeout()
getConnectionTimeout
in interface WroConfigurationMBean
public void setConnectionTimeout(int connectionTimeout)
setConnectionTimeout
in interface WroConfigurationMBean
connectionTimeout
- the connectionTimeout to setpublic boolean isParallelPreprocessing()
public void setParallelPreprocessing(boolean parallelPreprocessing)
parallelPreprocessing
- the parallelPreprocessing to setpublic boolean isIgnoreEmptyGroup()
isIgnoreEmptyGroup
in interface WroConfigurationMBean
public void setIgnoreEmptyGroup(boolean ignoreEmptyGroup)
setIgnoreEmptyGroup
in interface WroConfigurationMBean
ignoreEmptyGroup
- flag for turning on/off failure when there is an empty group (nothing to process). This value is true by
default, meaning that empty group will produce empty result (no exception).public boolean isIgnoreFailingProcessor()
public void setIgnoreFailingProcessor(boolean ignoreFailingProcessor)
public final long getResourceWatcherUpdatePeriod()
getResourceWatcherUpdatePeriod
in interface WroConfigurationMBean
public final void setResourceWatcherUpdatePeriod(long resourceWatcherUpdatePeriod)
WroConfigurationMBean
setResourceWatcherUpdatePeriod
in interface WroConfigurationMBean
resourceWatcherUpdatePeriod
- number of seconds. Zero or less, means never.public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |