🪐 v0.4.0: add `WrapperAdapter` interface used to adapt an existed wrapper without modifying it 🔌💗
The purpose of Inspectable Wrappers is to provide a standard for wrapper chain with the inspection ability.
Wrapper
is core interface, used to- identify the wrapper instances as a wrapper chain
- provide static entry methods to inspect the wrapper chain
Attachable
interface is used to
enhance the wrapper instances with the attachment storage abilityWrapperAdapter
interface is used to
adapt an existed wrapper without modifying it
Note
Thanks to inspirational discussions from @zavakid about WrapperAdapter
💕🫡
☘️ Features
- add interface
WrapperAdapter
and its test cases 🔌- more info see usage demo
🛠️ Refactor
- add
final
to parameters for consistency - remove redundant type cast
🍼 Java API Doc
https://foldright.io/inspectable-wrappers/apidocs/0.4.0/index.html
🍪 Maven dependency
<dependency>
<groupId>io.foldright</groupId>
<artifactId>inspectable-wrappers</artifactId>
<version>0.4.0</version>
</dependency>