Interface WrapperAdapter<T>

Type Parameters:
T - the type of instances that be wrapped
All Superinterfaces:
Wrapper<T>

public interface WrapperAdapter<T> extends Wrapper<T>
This WrapperAdapter interface is used to adapt an existed wrapper instance to type Wrapper without modifying it.

The existed wrapper may not be able to be modified to integrate with inspectable wrappers; Integration with inspectable wrappers means implementation the Wrapper interface.

The wrapper chain contained WrapperAdapter looks like:

Wrapper Chain contains WrapperAdapter

Provided WrapperAdapterUtils to create WrapperAdapter instances of the given biz interface type by the underlying and adaptee instances without writing boilerplate codes of creating new adapter classes.

Author:
Jerry Lee (oldratlee at gmail dot com), Zava Xu (zava dot kid at gmail dot com)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the adapted/existed wrapper.

    Methods inherited from interface io.foldright.inspectablewrappers.Wrapper

    unwrap_