Module Qpid::Proton::Util::Wrapper::ClassMethods
In: lib/util/wrapper.rb

Adds methods to the target class for storing and retrieving pure Ruby wrappers to underlying Proton structures.

Such wrappers are stored in a registry using a key. The key is then attached to the Proton structure as a record. That record lives for as long as the Proton structure lives, and when the structure is released the record acts as hook to also delete the Ruby wrapper object from the registry.

@private

Methods

Public Instance methods

Retrieves the wrapper object with the supplied Proton struct.

@param impl [Object] The wrapper for the Proton struct. @param attachment_method [Symbol] The Proton attachment method.

@return [Object] The Ruby wrapper object.

Stores the given object for later retrieval.

@param object [Object] The object. @param attachment_method [Symbol] The Proton attachment method.

[Validate]