Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-92

Make TemplateDefinitionBuilder.buildTemplateDefinition more generic

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Obsolete
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Hi, I am quite new to magnolia, but I hope I'll find some assistance here.
      What I am trying to do is use blossom templates with STK, which should be not so complicated afaics. The problem I have today is that buildTemplateDefintion in TemplateDefintionBuilder returns a BlossomTemplateDefintion. My first idea was to subclass a BlossomTemplateDefintion clone from STKPage which provides the functionality neede for STK Templates. And then I would provide I custom "BlossomSTKRenederer" I would introduce an annotation in my extension, so that my custom builder would return an STK Enabled blossom compatible Template Defintion. cleaner would be if we could have some kind of interface here, but I think my understanding is not deep enough here. Do you think it's possible to change the return type of the method without much hassle?

      Any help will be appreciated.

      Look here, this was my idea which does not compile because my template defintion does not inherit from BlossomTemplateDefinition.

      https://github.com/eiswind/magnolia-blossom-stk-integration/blob/master/webapp/module/src/main/java/de/eiswind/magnolia/blossom/builder/BlossomSTKTemplateDefinitionBuilder.java

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              eiswind Thomas Kratz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD