Skip to content

πŸͺ v0.5.0: add `Inspector` class and `travel` method πŸ•΅οΈπŸ’—

Compare
Choose a tag to compare
@oldratlee oldratlee released this 27 Mar 11:05
Β· 37 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.

  • Core interfaces:
    • Wrapper interface is used to
      be implemented by wrapper classes, make an inspectable wrapper chain(linked list)
    • Attachable interface is used to
      enhance the wrapper instances with the attachment storage ability
    • WrapperAdapter interface is used to
      adapt an existed wrapper instance to type Wrapper without modifying it
  • Inspector class is used to inspect the wrapper chain

Note

Thanks to inspirational discussions from @zavakid about Inspector and WrapperAdapter πŸ’•πŸ«‘

☘️ Features

  • add Inspector class πŸ•΅οΈ (by @zavakid)
    extract Inspector from Wrapper
  • add Inspector.travel method πŸ›₯️
    and use it in methods Wrapper.inspect/getAttachment

🐞 BugFix

  • inspection/iteration of wrapper chain should not skip the last non-Wrapper instance 🧐

πŸ› οΈ Refactor

  • move util methods to Inspector, remove InternalUtils class
  • add missing QA annotations

πŸ“š Documentation

  • improve docs/javadoc πŸ“š

πŸ§ͺ Test

  • add test case of inspecting last instance on wrapper chain

🚜 Chore/Bulid

  • upgrade dependencies/plugins πŸ› οΈ

🍼 Java API Doc

https://foldright.io/inspectable-wrappers/apidocs/0.5.0/index.html

πŸͺ Maven dependency

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>inspectable-wrappers</artifactId>
    <version>0.5.0</version>
</dependency>