🪐 v0.5.3 support `java9 jigsaw` 📦💗
The purpose of Inspectable Wrappers is to provide a standard for wrapper chain with the inspection ability.
- The core interfaces/specification 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 abilityWrapperAdapter
interface is used to
adapt an existed wrapper instance to typeWrapper
without modifying it
- The
Inspector
class is used to inspect the wrapper chain - The utility classes:
AttachableDelegate
class provides a simpleAttachable
delegate implementationWrapperAdapterUtils
class provides utility methods for creatingWrapperAdapter
instances without writing boilerplate codes of creating new adapter classes
Note
Thanks to inspirational discussions from @zavakid about Inspector
and WrapperAdapter
💕🫡
☘️ Features
- check contracts when
WrapperAdapterUtils.createWrapperAdapter()
⚖️ - support
java9 jigsaw
📦
📚 Documentation
- add
IntegrationDemoUsingWrapperAdapterUtils
🎡 - improve docs/javadoc 📚
🚜 Chore/Bulid
- add
check-forbidden-classes.sh
🚫
🍼 Java API Doc
https://foldright.io/inspectable-wrappers/apidocs/0.5.3/index.html
🍪 Maven dependency
<dependency>
<groupId>io.foldright</groupId>
<artifactId>inspectable-wrappers</artifactId>
<version>0.5.3</version>
</dependency>