ro.isdc.wro.config.jmx
Enum ConfigConstants

java.lang.Object
  extended by java.lang.Enum<ConfigConstants>
      extended by ro.isdc.wro.config.jmx.ConfigConstants
All Implemented Interfaces:
Serializable, Comparable<ConfigConstants>

public enum ConfigConstants
extends Enum<ConfigConstants>

Hold the name of the properties.

Since:
1.3.7
Author:
Alex Objelean

Enum Constant Summary
cacheGzippedContent
          When this flag is enabled, the raw processed content will be gzipped only the first time and all subsequent requests will use the cached gzipped content.
cacheUpdatePeriod
          Parameter containing an integer value for specifying how often (in seconds) the cache should be refreshed.
connectionTimeout
          After how many seconds the connection to servlet context and external url will be timed-out.
debug
           
disableCache
          Disable cache configuration option.
encoding
          Encoding to use when reading and writing bytes from/to stream
gzipResources
          Boolean flag for enable/disable resource gzipping.
header
          The parameter used to specify headers to put into the response, used mainly for caching.
ignoreEmptyGroup
          When a group is empty and this flag is false, the processing will fail.
ignoreFailingProcessor
          When this flag is true, any failure during processor will leave the content unchanged.
ignoreMissingResources
          Instructs wro4j to not throw an exception when a resource is missing.
jmxEnabled
          Parameter allowing to turn jmx on or off.
managerFactoryClassName
          The fully qualified class name of the WroManagerFactory implementation.
mbeanName
          the name of MBean to be used by JMX to configure wro4j.
modelUpdatePeriod
          Parameter containing an integer value for specifying how often (in seconds) the model should be refreshed.
parallelPreprocessing
          When true, will run in parallel pre processing of multiple resources.
resourceWatcherUpdatePeriod
          Parameter containing an integer value for specifying how often (in seconds) to run a thread responsible for checking resource changes.
 
Method Summary
static ConfigConstants valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigConstants[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

debug

public static final ConfigConstants debug

gzipResources

public static final ConfigConstants gzipResources
Boolean flag for enable/disable resource gzipping.


jmxEnabled

public static final ConfigConstants jmxEnabled
Parameter allowing to turn jmx on or off.


cacheUpdatePeriod

public static final ConfigConstants cacheUpdatePeriod
Parameter containing an integer value for specifying how often (in seconds) the cache should be refreshed.


modelUpdatePeriod

public static final ConfigConstants modelUpdatePeriod
Parameter containing an integer value for specifying how often (in seconds) the model should be refreshed.


resourceWatcherUpdatePeriod

public static final ConfigConstants resourceWatcherUpdatePeriod
Parameter containing an integer value for specifying how often (in seconds) to run a thread responsible for checking resource changes. When a change is detected, the cache for that particular group is invalidated.


disableCache

public static final ConfigConstants disableCache
Disable cache configuration option. When true, the processed content won't be cached in DEVELOPMENT mode. In DEPLOYMENT mode changing this flag will have no effect.


parallelPreprocessing

public static final ConfigConstants parallelPreprocessing
When true, will run in parallel pre processing of multiple resources. In theory this should improve the performance.


cacheGzippedContent

public static final ConfigConstants cacheGzippedContent
When this flag is enabled, the raw processed content will be gzipped only the first time and all subsequent requests will use the cached gzipped content. Otherwise, the gzip operation will be performed for each request. This flag allow to control the memory vs processing power trade-off.


ignoreMissingResources

public static final ConfigConstants ignoreMissingResources
Instructs wro4j to not throw an exception when a resource is missing.


ignoreEmptyGroup

public static final ConfigConstants ignoreEmptyGroup
When a group is empty and this flag is false, the processing will fail. This is useful for runtime solution to allow filter chaining when there is nothing to process for a given request.


ignoreFailingProcessor

public static final ConfigConstants ignoreFailingProcessor
When this flag is true, any failure during processor will leave the content unchanged. Otherwise, the exception will interrupt processing with a RuntimeException.


encoding

public static final ConfigConstants encoding
Encoding to use when reading and writing bytes from/to stream


managerFactoryClassName

public static final ConfigConstants managerFactoryClassName
The fully qualified class name of the WroManagerFactory implementation.


mbeanName

public static final ConfigConstants mbeanName
the name of MBean to be used by JMX to configure wro4j.


header

public static final ConfigConstants header
The parameter used to specify headers to put into the response, used mainly for caching.


connectionTimeout

public static final ConfigConstants connectionTimeout
After how many seconds the connection to servlet context and external url will be timed-out. This is useful to avoid memory leaks when connection pool responsible for cache and model reload is destroyed.

Method Detail

values

public static ConfigConstants[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ConfigConstants c : ConfigConstants.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConfigConstants valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2008-2013. All Rights Reserved.