|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.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 WroConfigurationMBeanpublic long getModelUpdatePeriod()
getModelUpdatePeriod in interface WroConfigurationMBeanpublic void setCacheUpdatePeriod(long period)
setCacheUpdatePeriod in interface WroConfigurationMBeanperiod - number of seconds. Zero or less, means never.public void setModelUpdatePeriod(long period)
setModelUpdatePeriod in interface WroConfigurationMBeanperiod - number of seconds. Zero or less, means never.public boolean isGzipEnabled()
isGzipEnabled in interface WroConfigurationMBeanpublic void setGzipEnabled(boolean enable)
setGzipEnabled in interface WroConfigurationMBeanenable - if true, gzip will be enabled, otherwise will be disabled.public void reloadCache()
reloadCache in interface WroConfigurationMBeanpublic void reloadModel()
reloadModel in interface WroConfigurationMBeanpublic void registerModelUpdatePeriodChangeListener(PropertyChangeListener listener)
listener - to add.public void registerCacheUpdatePeriodChangeListener(PropertyChangeListener listener)
listener - to add.public boolean isDebug()
isDebug in interface WroConfigurationMBeanpublic void setDebug(boolean debug)
WroConfigurationMBean
setDebug in interface WroConfigurationMBeandebug - the debug to setpublic boolean isIgnoreMissingResources()
isIgnoreMissingResources in interface WroConfigurationMBeanpublic void setIgnoreMissingResources(boolean ignoreMissingResources)
setIgnoreMissingResources in interface WroConfigurationMBeanignoreMissingResources - 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 WroConfigurationMBeanpublic void setCacheGzippedContent(boolean cacheGzippedContent)
WroConfigurationMBean
setCacheGzippedContent in interface WroConfigurationMBeancacheGzippedContent - the cacheGzippedContent to setpublic void destroy()
public String getEncoding()
getEncoding in interface WroConfigurationMBeanpublic void setEncoding(String encoding)
WroConfigurationMBean
setEncoding in interface WroConfigurationMBeanencoding - 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 WroConfigurationMBeanpublic void setConnectionTimeout(int connectionTimeout)
setConnectionTimeout in interface WroConfigurationMBeanconnectionTimeout - the connectionTimeout to setpublic boolean isParallelPreprocessing()
public void setParallelPreprocessing(boolean parallelPreprocessing)
parallelPreprocessing - the parallelPreprocessing to setpublic boolean isIgnoreEmptyGroup()
isIgnoreEmptyGroup in interface WroConfigurationMBeanpublic void setIgnoreEmptyGroup(boolean ignoreEmptyGroup)
setIgnoreEmptyGroup in interface WroConfigurationMBeanignoreEmptyGroup - 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 WroConfigurationMBeanpublic final void setResourceWatcherUpdatePeriod(long resourceWatcherUpdatePeriod)
WroConfigurationMBean
setResourceWatcherUpdatePeriod in interface WroConfigurationMBeanresourceWatcherUpdatePeriod - number of seconds. Zero or less, means never.public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||