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 viaValueInspectorService
implementations and mapped to generic link, media, rich text and component values - or simple values for all other properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull GenericComponent
build(@NotNull java.lang.Object modelInstance, @NotNull org.apache.sling.api.resource.Resource resource)
Build generic view of model instance.
-
-
-
Method Detail
-
build
@NotNull @NotNull GenericComponent build(@NotNull @NotNull java.lang.Object modelInstance, @NotNull @NotNull org.apache.sling.api.resource.Resource resource)
Build generic view of model instance.- Parameters:
modelInstance
- Model instanceresource
- Related resource- Returns:
- Generic component
-
-