|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.peaseplate.internal.service.DefaultCacheService
public class DefaultCacheService
The default implementation of the cache service
Constructor Summary | |
---|---|
DefaultCacheService()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCacheService()
Method Detail |
---|
public Messages getMessages(TemplateEngine engine, java.lang.String name) throws TemplateException
CacheService
getMessages
in interface CacheService
engine
- the template enginename
- the name of the template (The extension will get replaces by ".properties"
TemplateException
- if anything goes wrongpublic Messages getMessages(TemplateEngine engine, java.lang.String name, java.util.Locale locale) throws TemplateException
CacheService
getMessages
in interface CacheService
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 wrongpublic Messages getMessages(TemplateEngine engine, java.lang.String name, java.lang.String encoding) throws TemplateException
CacheService
getMessages
in interface CacheService
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 wrongpublic Messages getMessages(TemplateEngine engine, java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws TemplateException
CacheService
getMessages
in interface CacheService
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 wrongpublic Template getTemplate(TemplateEngine engine, java.lang.String name) throws TemplateException
CacheService
Resolver
.
getTemplate
in interface CacheService
engine
- the template enginename
- the name of the template
TemplateException
- if anything goes wrongpublic Template getTemplate(TemplateEngine engine, java.lang.String name, java.util.Locale locale) throws TemplateException
CacheService
Resolver
.
getTemplate
in interface CacheService
engine
- the template enginename
- the name of the templatelocale
- the locale; uses the default locale if null
TemplateException
- if anything goes wrongpublic Template getTemplate(TemplateEngine engine, java.lang.String name, java.lang.String encoding) throws TemplateException
CacheService
Resolver
.
getTemplate
in interface CacheService
engine
- the template enginename
- the name of the templateencoding
- the encoding; uses the default encoding if null
TemplateException
- if anything goes wrongpublic Template getTemplate(TemplateEngine engine, java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws TemplateException
CacheService
Resolver
.
getTemplate
in interface CacheService
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 wrongpublic Template getTemplate(TemplateEngine engine, ResourceKey key) throws TemplateException
getTemplate
in interface CacheService
TemplateException
CacheService.getTemplate(org.peaseplate.TemplateEngine, org.peaseplate.internal.ResourceKey)
public Messages getMessages(TemplateEngine engine, ResourceKey key) throws TemplateException
getMessages
in interface CacheService
TemplateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |