r/java • • Dec 26 '25

Evolving Spring Vault: Introducing VaultClient

https://spring.io/blog/2025/12/26/evolving-spring-vault
32 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/nekokattt Dec 29 '25

Still don't feel like they are a template if they are an implementation. Any class that isn't final and is designed sensibly would support this.

0

u/UnGauchoCualquiera Dec 29 '25 edited Dec 29 '25

They are textbook definitions of templates though. Whether they are implementations rather than abstract classes is irrelevant. What matters is that the parent class defines the workflow or behavior and invokes well-defined, documented protected hook methods that act as extension points. In the case of RestTemplate, those extension points are the methods mentioned earlier.