Example usage for org.springframework.core.io.buffer DataBufferFactory interface-usage

List of usage examples for org.springframework.core.io.buffer DataBufferFactory interface-usage

Introduction

In this page you can find the example usage for org.springframework.core.io.buffer DataBufferFactory interface-usage.

Usage

From source file org.springframework.core.io.buffer.LeakAwareDataBufferFactory.java

/**
 * Implementation of the {@code DataBufferFactory} interface that keep track of memory leaks.
 * Useful for unit tests that handle data buffers. Simply inherit from
 * {@link AbstractLeakCheckingTestCase} or call {@link #checkForLeaks()} in
 * a JUnit {@link After} method yourself, and any buffers have not been released will result in an
 * {@link AssertionError}.