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.

@FunctionalInterface public interface ComponentFactory
Functional interface for creating component instances from parsed nodes.
  • Method Details

    • create

      BaseComponent create(MjmlNode node, GlobalContext globalContext, RenderContext renderContext)
      Creates a component instance from the given parsed node.
      Parameters:
      node - the parsed MJML node for the component
      globalContext - the document-wide context gathered during head processing
      renderContext - the current rendering context (container width, position, etc.)
      Returns:
      the created component instance