|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.cache.ehcache.EhCachePoolMixin
public class EhCachePoolMixin
Constructor Summary | |
---|---|
EhCachePoolMixin()
|
Method Summary | ||
---|---|---|
void |
activate()
This is invoked on the service when the instance is being activated |
|
|
fetchCache(String cacheId,
Class<T> valueType)
Fethces a cache from the pool. |
|
void |
passivate()
This is invoked on the service when the instance is being passivated |
|
void |
returnCache(Cache cache)
Returns the cache back to the pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EhCachePoolMixin()
Method Detail |
---|
public <T> Cache<T> fetchCache(String cacheId, Class<T> valueType)
CachePool
fetchCache
in interface CachePool
cacheId
- The identity of the cache. If the same id is given as a previous fetch, the same cache will be
returned.
public void returnCache(Cache cache)
CachePool
returnCache
in interface CachePool
cache
- The cache to return to the pool.public void activate() throws Exception
Activatable
activate
in interface Activatable
Exception
- if service could not be activatedpublic void passivate() throws Exception
Activatable
passivate
in interface Activatable
Exception
- if the service could not be passivated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |