The Emitter Parameter Pattern for Flexible SPI Contracts
Read OriginalThis technical article discusses the 'Emitter Parameter Pattern' for designing flexible Service Provider Interfaces (SPIs) in software libraries. It argues that passing emitter objects as parameters, instead of using method return values, provides advantages like avoiding multiple data passes, reducing unnecessary object allocations, and improving API evolution by exposing only interfaces, not concrete classes. The blog uses a blog platform data extractor SPI as a detailed example.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser