|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FileTemplateCache.Strategy> freemarker.template.FileTemplateCache.Strategy
public static enum FileTemplateCache.Strategy
Enumeration of caching strategies available to this cache.
Enum Constant Summary | |
---|---|
LOAD_AD_HOC
Used with FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy) to indicate that
templates are preloaded but there is no automatic updating of them. |
|
LOAD_ON_DEMAND
Used with FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy) to indicate that
templates should be loaded as they are requested. |
|
LOAD_ON_DEMAND_WITH_REFRESH
Used with FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy) to indicate that
templates should be loaded as they are requested. |
|
NULL_CACHE
Used with FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy) to indicate that
no files are cached. |
|
PRELOAD
Used with FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy) to indicate that
templates should be preloaded. |
Method Summary | |
---|---|
static FileTemplateCache.Strategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FileTemplateCache.Strategy[] |
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 |
---|
public static final FileTemplateCache.Strategy LOAD_ON_DEMAND
FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy)
to indicate that
templates should be loaded as they are requested.
public static final FileTemplateCache.Strategy PRELOAD
FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy)
to indicate that
templates should be preloaded.
public static final FileTemplateCache.Strategy LOAD_AD_HOC
FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy)
to indicate that
templates are preloaded but there is no automatic updating of them.
Instead, only named templates are updated when the cache is requested
to do so.
public static final FileTemplateCache.Strategy NULL_CACHE
FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy)
to indicate that
no files are cached.
public static final FileTemplateCache.Strategy LOAD_ON_DEMAND_WITH_REFRESH
FileTemplateCache.setLoadingPolicy(freemarker.template.FileTemplateCache.Strategy)
to indicate that
templates should be loaded as they are requested. Once loaded, they
are periodically refreshed as per the PRELOAD
policy, rather
than checked at each request.
Method Detail |
---|
public static FileTemplateCache.Strategy[] values()
for (FileTemplateCache.Strategy c : FileTemplateCache.Strategy.values()) System.out.println(c);
public static FileTemplateCache.Strategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |