@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)
CommentThreadService
CommentThreadModel
list for a CommentThread
.getCommentThread
in interface CommentThreadService
commentable
- Commentable
to get the CommentThreadModel
forCommentThreadModel
of that CommentThread
@CacheEvict(value="commentThread", key="#commentable.thread.id") public void evict(Commentable commentable)
CommentThreadService
Commentable
.evict
in interface CommentThreadService
commentable
- Commentable
to purge all cached information fromCopyright © 2009–2016. All rights reserved.