Interface Attachable<K,V>

Type Parameters:
K - the key type, requirements depending on which storage is used
V - the value type to be stored
All Known Implementing Classes:
AttachableDelegate

public interface Attachable<K,V>
This Attachable interface is used to be implemented by wrapper classes, provide the attachment storage ability.

Retrieves the attachment from wrapper chain by method Inspector.getAttachmentFromWrapperChain(Object, Object).

Provided AttachableDelegate as a simple delegate implementation.

Author:
Jerry Lee (oldratlee at gmail dot com), Yang Fang (snoop dot fy at gmail dot com)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the attachment value for the given key.
    void
    setAttachment_(K key, V value)
    Sets an attachment.