|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheService
The cache service is responsible for caching templates and messages, to load them if they are on in the cache and to reload them if they are outdated.
Method Summary | |
---|---|
Messages |
getMessages(TemplateEngine engine,
ResourceKey key)
|
Messages |
getMessages(TemplateEngine engine,
java.lang.String name)
Returns the messages with the specified name. |
Messages |
getMessages(TemplateEngine engine,
java.lang.String name,
java.util.Locale locale)
Returns the messages with the specified name. |
Messages |
getMessages(TemplateEngine engine,
java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Returns the messages with the specified name. |
Messages |
getMessages(TemplateEngine engine,
java.lang.String name,
java.lang.String encoding)
Returns the messages with the specified name. |
Template |
getTemplate(TemplateEngine engine,
ResourceKey key)
|
Template |
getTemplate(TemplateEngine engine,
java.lang.String name)
Returns the template with the specified name. |
Template |
getTemplate(TemplateEngine engine,
java.lang.String name,
java.util.Locale locale)
Returns the template with the specified name. |
Template |
getTemplate(TemplateEngine engine,
java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Returns the template with the specified name. |
Template |
getTemplate(TemplateEngine engine,
java.lang.String name,
java.lang.String encoding)
Returns the template with the specified name. |
Method Detail |
---|
Template getTemplate(TemplateEngine engine, java.lang.String name) throws TemplateException
Resolver
.
engine
- the template enginename
- the name of the template
TemplateException
- if anything goes wrongTemplate getTemplate(TemplateEngine engine, java.lang.String name, java.util.Locale locale) throws TemplateException
Resolver
.
engine
- the template enginename
- the name of the templatelocale
- the locale; uses the default locale if null
TemplateException
- if anything goes wrongTemplate getTemplate(TemplateEngine engine, java.lang.String name, java.lang.String encoding) throws TemplateException
Resolver
.
engine
- the template enginename
- the name of the templateencoding
- the encoding; uses the default encoding if null
TemplateException
- if anything goes wrongTemplate getTemplate(TemplateEngine engine, java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws TemplateException
Resolver
.
engine
- the template enginename
- the name of the templatelocale
- the locale; uses the default locale if nullencoding
- the encoding; uses the default encoding if null
TemplateException
- if anything goes wrongTemplate getTemplate(TemplateEngine engine, ResourceKey key) throws TemplateException
TemplateException
Messages getMessages(TemplateEngine engine, java.lang.String name) throws TemplateException
engine
- the template enginename
- the name of the template (The extension will get replaces by ".properties"
TemplateException
- if anything goes wrongMessages getMessages(TemplateEngine engine, java.lang.String name, java.util.Locale locale) throws TemplateException
engine
- the template enginename
- the name of the template (The extension will get replaces by ".properties"locale
- the locale; uses the default locale if null
TemplateException
- if anything goes wrongMessages getMessages(TemplateEngine engine, java.lang.String name, java.lang.String encoding) throws TemplateException
engine
- the template enginename
- the name of the template (The extension will get replaces by ".properties"encoding
- the encoding; uses the default encoding if null, but usually not needed,
the messages are loaded from properties file, and properties files have their own
encoding
TemplateException
- if anything goes wrongMessages getMessages(TemplateEngine engine, java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws TemplateException
engine
- the template enginename
- the name of the template (The extension will get replaces by ".properties"locale
- the locale; uses the default locale if nullencoding
- the encoding; uses the default encoding if null, but usually not needed,
the messages are loaded from properties file, and properties files have their own
encoding
TemplateException
- if anything goes wrongMessages getMessages(TemplateEngine engine, ResourceKey key) throws TemplateException
TemplateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |