Interface ComponentFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for creating component instances from parsed nodes.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(MjmlNode node, GlobalContext globalContext, RenderContext renderContext) Creates a component instance from the given parsed node.
-
Method Details
-
create
Creates a component instance from the given parsed node.- Parameters:
node- the parsed MJML node for the componentglobalContext- the document-wide context gathered during head processingrenderContext- the current rendering context (container width, position, etc.)- Returns:
- the created component instance
-