Class AbstractContentAccessor.CallbackFileChannel

java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.FileChannel
org.alfresco.repo.content.AbstractContentAccessor.CallbackFileChannel
All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel, SeekableByteChannel, WritableByteChannel
Enclosing class:
AbstractContentAccessor

protected class AbstractContentAccessor.CallbackFileChannel extends FileChannel
Wraps a FileChannel to provide callbacks to listeners when the channel is closed.

This class is unfortunately necessary as the FileChannel doesn't have an single interface defining its methods, making it difficult to put an advice around the methods that require overriding.

Author:
Derek Hulley