Class 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.AfterReturningAdvice
    Advise that listens for the completion of specific methods on the ByteChannel interface. This advise reacts only in the afterReturning phase 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
      void afterReturning​(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
      Provides transactional callbacks to the listeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChannelCloseCallbackAdvise

        public ChannelCloseCallbackAdvise​(java.util.List<org.alfresco.service.cmr.repository.ContentStreamListener> 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.Throwable
        Provides transactional callbacks to the listeners
        Specified by:
        afterReturning in interface org.springframework.aop.AfterReturningAdvice
        Throws:
        java.lang.Throwable