public class CacheAspect extends Object
Constructor and Description |
---|
CacheAspect() |
Modifier and Type | Method and Description |
---|---|
Identified |
getObject(org.aspectj.lang.ProceedingJoinPoint pjp)
Handle a 'get by T2Reference' operation on a Dao
|
void |
putObject(org.aspectj.lang.ProceedingJoinPoint pjp)
Called around a write or update operation on the backing store, writes
through to the cache after modifying the state of the backing store and
before returning from the dao method
|
void |
setCacheProvider(ReferenceServiceCacheProvider cacheProvider)
Inject an instance of ReferenceServiceCacheProvider
|
public final void setCacheProvider(ReferenceServiceCacheProvider cacheProvider)
cacheProvider
- the cache provider to usepublic final Identified getObject(org.aspectj.lang.ProceedingJoinPoint pjp) throws DaoException
pjp
- the join point representing the ongoing method call to the daoDaoException
- if anything goes wrongpublic void putObject(org.aspectj.lang.ProceedingJoinPoint pjp) throws DaoException
pjp
- join point representing the ongoing method invocation to cacheDaoException
- if anything goes wrongCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.