Skip to content

Conversation

@slinkydeveloper
Copy link
Member

@slinkydeveloper slinkydeveloper commented Nov 11, 2020

  • Extracted readAttributes and readExtensions from CloudEventReader and moved to CloudEventContextReader: This relaxes the assumption that any CloudEventReader has attributes and extensions buffered and it avoids to create empty implementations of readAttributes/readExtensions for protocol bindings (in protocol bindings context, only read is ever used).
  • Added CloudEventUtils#toContextReader to create a context reader starting from a CloudEvent (in fact, works the same as CloudEventUtils#toVisitable
  • Improved documentation of *Reader interfaces
  • Renamed MessageReader#visit to the proper name MessageReader#read

Signed-off-by: Francesco Guardiani francescoguard@gmail.com

Added CloudEventUtils#toContextReader to create a context reader starting from a CloudEvent
Improved documentation of *Reader interfaces
Renamed MessageReader#visit to the proper name MessageReader#read

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper slinkydeveloper added this to the 2.0.0.CR1 milestone Nov 11, 2020
@slinkydeveloper slinkydeveloper added the enhancement New feature or request label Nov 11, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Copy link

@aliok aliok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@slinkydeveloper slinkydeveloper merged commit 42a7326 into cloudevents:master Nov 13, 2020
@slinkydeveloper slinkydeveloper deleted the reader_interface_reorg branch November 13, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants