Interface RepresentationGeneratorService


  • public interface RepresentationGeneratorService
    This is the OSGi service interface of a registry of RepresentationGenerator instances. Clients can register their own RepresentationGenerator by making it available through the OSGi service registry. The single implementation of this module does not implement service ranking. I.e., if there are two services registered for a given type, then it is not specified which of the two services is used to represent the content item.

    The search order for a given type T is defined as follows:

    1. If T is mapped to a set of generators then return an arbitrary generator from that set.
    2. For all interfaces I of T do: If I is mapped to a set of generators then return an arbitrary generator from that set.
    3. Let S be the super type of T. Start from (1) with S.

    On startup, the service registers a number of default representation generators for the following types:

    • Object
    • Page
    • PageMetaData
    • Redirect
    • RelatedLink
    • WorkflowModelInstance
    • WorkflowActivityInstance
    • PageVersion
    • Element
    • All legacy elements
    • MediaItemArticleVersion