Interface GenericComponentBuilderService


@ProviderType public interface GenericComponentBuilderService
Builds a generic view of a Sling Model instance reflecting all properties found in it's interface. Special properties are detected via ValueInspectorService implementations and mapped to generic link, media, rich text and component values - or simple values for all other properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(@NotNull Object modelInstance, @NotNull org.apache.sling.api.resource.Resource resource)
    Build generic view of model instance.
  • Method Details

    • build

      @NotNull @NotNull GenericComponent build(@NotNull @NotNull Object modelInstance, @NotNull @NotNull org.apache.sling.api.resource.Resource resource)
      Build generic view of model instance.
      Parameters:
      modelInstance - Model instance
      resource - Related resource
      Returns:
      Generic component