Package org.alfresco.repo.content
Class AbstractContentAccessor.ChannelCloseCallbackAdvise
- java.lang.Object
-
- org.alfresco.repo.content.AbstractContentAccessor.ChannelCloseCallbackAdvise
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.springframework.aop.AfterAdvice,org.springframework.aop.AfterReturningAdvice
- Enclosing class:
- AbstractContentAccessor
protected class AbstractContentAccessor.ChannelCloseCallbackAdvise extends java.lang.Object implements org.springframework.aop.AfterReturningAdviceAdvise that listens for the completion of specific methods on theByteChannelinterface. This advise reacts only in theafterReturningphase so that the underlying stream methods have been successfully completed.- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description ChannelCloseCallbackAdvise(java.util.List<org.alfresco.service.cmr.repository.ContentStreamListener> listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)Provides transactional callbacks to the listeners
-
-
-
Method Detail
-
afterReturning
public void afterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target) throws java.lang.ThrowableProvides transactional callbacks to the listeners- Specified by:
afterReturningin interfaceorg.springframework.aop.AfterReturningAdvice- Throws:
java.lang.Throwable
-
-