Skip to content

🪐 v0.4.0: add `WrapperAdapter` interface used to adapt an existed wrapper without modifying it 🔌💗

Compare
Choose a tag to compare
@oldratlee oldratlee released this 24 Mar 16:13
· 47 commits to main since this release

inspectable-wrappers

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 ability
  • WrapperAdapter 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 🔌

🛠️ 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>