Posted In: Pattern, Spring

Use of adapter pattern in Spring – CompletableToListenableFutureAdapter

Adapter pattern Adapter pattern allows the interface of an existing class to be used as another interface. It is often used to make existing classes work with others without modifying their source code. In this example adapter takes CompletableFuture as constructor argument and returns Spring ListenableFuture.  

Read More

Tags:

by , on July 24th, 2017

  • Categories