@Service @Transactional public class CommentThreadServiceImpl extends Object implements CommentThreadService
CommentThreadService implementation.| Constructor and Description |
|---|
CommentThreadServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(Commentable commentable)
Purges all cached information about the
Commentable. |
CommentThreadModel |
getCommentThread(Commentable commentable)
Creates a
CommentThreadModel list for a CommentThread. |
public CommentThreadServiceImpl()
@Cacheable(value="commentThread",
key="#commentable.thread.id")
public CommentThreadModel getCommentThread(Commentable commentable)
CommentThreadServiceCommentThreadModel list for a CommentThread.getCommentThread in interface CommentThreadServicecommentable - Commentable to get the CommentThreadModel forCommentThreadModel of that CommentThread@CacheEvict(value="commentThread",
key="#commentable.thread.id")
public void evict(Commentable commentable)
CommentThreadServiceCommentable.evict in interface CommentThreadServicecommentable - Commentable to purge all cached information fromCopyright © 2009–2016. All rights reserved.