Class CompositeApiRendererFactory
- java.lang.Object
-
- com.aquima.web.api.model.page.renderer.CompositeApiRendererFactory
-
- All Implemented Interfaces:
IApiRendererFactory
public class CompositeApiRendererFactory extends Object implements IApiRendererFactory
Composite implementation of the IApiRendererFactory- Since:
- 9.2
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Constructor Description CompositeApiRendererFactory()
CompositeApiRendererFactory(List<IApiRendererFactory> factories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFactory(IApiRendererFactory factory)
Adds a factory.IModelRenderer
getRenderer(com.aquima.interactions.composer.IElement element)
This method returns the renderer for a specified model.
-
-
-
Constructor Detail
-
CompositeApiRendererFactory
public CompositeApiRendererFactory()
-
CompositeApiRendererFactory
public CompositeApiRendererFactory(List<IApiRendererFactory> factories)
-
-
Method Detail
-
getRenderer
public IModelRenderer getRenderer(com.aquima.interactions.composer.IElement element)
Description copied from interface:IApiRendererFactory
This method returns the renderer for a specified model.- Specified by:
getRenderer
in interfaceIApiRendererFactory
- Parameters:
element
- The element to create a renderer for, not null.- Returns:
- The renderer for the element, never null.
-
addFactory
public void addFactory(IApiRendererFactory factory)
Adds a factory.- Parameters:
factory
- Factory implementation, not null.
-
-