GenericRenderers icon indicating copy to clipboard operation
GenericRenderers copied to clipboard

When there's only one renderer, it's used regardless of the content's type

Open ps-feng opened this issue 7 years ago • 0 comments

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.

ps-feng avatar Jun 19 '18 16:06 ps-feng