Fop
  1. Fop
  2. FOP-1558

Better support for overriding default LayoutManagerMaker needed

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.94
    • Fix Version/s: None
    • Component/s: page-master/layout
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      45470

      Description

      I have the requirement to replace the default BlockContainerLayoutManagerMaker with my own implementation. After searching the code base I think the suggested way is by using the setLayoutManagerMakerOverride(LayoutManagerMaker) method of the FopFactory to override the default LayoutManagerMaker implementation.

      My own LayoutManagerMaker is a subclass of the default LayoutManagerMapping.
      Unfortunately, 'cause the map of LayoutManagerMakers is private and no protected setter is given to change the default mapping set during initialize(), one has to provide a second map of LayoutManagerMakers and duplicate a lot of code to tell fop to use this new mapping.

      My suggestion:
      Either make the map of LayoutManagerMakers protected or preferably provide a protected setter to change the default mapping.

      Thanks in advance
      Rainer

        Activity

        Rainer Langbehn created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Rainer Langbehn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development