|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheProvider
A provider for a specific Cache
implementation. Via this plug-in construct, the OmniFaces Cache component can
make use of different kinds of cache implementations.
Method Summary | |
---|---|
Cache |
getCache(javax.faces.context.FacesContext context,
java.lang.String scope)
Gets an instance of a Cache using the configured cache provider. |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Passes parameters to the cache provider implementation. |
Method Detail |
---|
Cache getCache(javax.faces.context.FacesContext context, java.lang.String scope)
context
- faces context used for resolving the given scope.scope
- scope for which the cache should be obtained. Supported scopes are dependent on the specific caching
provider, but generally at least "session" and "application" should be supported.
void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- map of parameters used to configure the cache.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |