GenericRenderers
GenericRenderers copied to clipboard
When there's only one renderer, it's used regardless of the content's type
Problem
When only 1 renderer is bound via RendererBuilder.BindedExtendedRendererBuilder, it's used for rendering any RendererContent added into the RendererAdapter. This can cause different RendererContent to be rendered with the same renderer.
https://github.com/aballano/GenericRenderers/blob/master/renderers/src/main/java/com/pedrogomez/renderers/RendererBuilder.java#L256
Expected behavior
It should throw PrototypeNotFoundException.