|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.concurrency.caching.AbstractEntityCachingService
public abstract class AbstractEntityCachingService
Provides common IEntityCachingService logic
| Constructor Summary | |
|---|---|
AbstractEntityCachingService()
|
|
| Method Summary | |
|---|---|
void |
add(IBasicEntity entity)
Adds the entity to the cache. |
IBasicEntity |
get(Class<? extends IBasicEntity> entityType,
String key)
Returns the cached entity identified by type and key. |
protected abstract IEntityCache |
getCache(Class<? extends IBasicEntity> entityType)
Retrieves the IEntityCache to store the specified entityType in. |
void |
remove(Class<? extends IBasicEntity> entityType,
String key)
Removes the cached entity identified by type and key from the cache and notifies peer caches. |
void |
update(IBasicEntity entity)
Updates the entity in the cache and notifies peer caches. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEntityCachingService()
| Method Detail |
|---|
protected abstract IEntityCache getCache(Class<? extends IBasicEntity> entityType)
throws CachingException
IEntityCache to store the specified entityType in.
entityType - The type to retrieve the cache for
CachingException - If no cache can be found/created for the specified entityType.
IllegalArgumentException - If entityType is null.
public void add(IBasicEntity entity)
throws CachingException
IEntityCachingService
add in interface IEntityCachingServiceentity - org.jasig.portal.concurrency.IBasicEntity
CachingException
public IBasicEntity get(Class<? extends IBasicEntity> entityType,
String key)
throws CachingException
IEntityCachingService
get in interface IEntityCachingServiceentityType - Classkey - String
CachingException
public void remove(Class<? extends IBasicEntity> entityType,
String key)
throws CachingException
IEntityCachingService
remove in interface IEntityCachingServiceentityType - Classkey - String
CachingException
public void update(IBasicEntity entity)
throws CachingException
IEntityCachingService
update in interface IEntityCachingServiceentity - org.jasig.portal.concurrency.IBasicEntity
CachingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||