Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-1614

Rename FieldBuilder to FieldFactory

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.0
    • None
    • framework
    • RC 1

      We decided to rename Field*Builders to Field*Factory. Which means:

      • we rename FieldBuilder to FieldFactory (FieldValidatorBuilder to FieldValidatorFactory)
        • Builder is reserved for the future configuration builders
      • the current FieldFactory will be renamed
        • the current name should have been FieldBuilderFactory anyway
        • the new name is FieldFactoryFactory
          • this is still the best name for that thing and we tried to avoid tricks like FieldFactoryProvider, ...
          • this class is an internal and normal devs won't be confronted with it
      • FiledTypeDefinition.getBuilder()
        • is then FieldTypeDefinition.getFactoryClass()
          • its not an instance and should have the Class suffix
      • packages .builder will be renamed to .factory
      • methods creating e.g. fields will be renamed to "newInstance"

        Acceptance criteria

              dlipp Daniel Lipp
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR