Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3441

Automatically register LogicalTypeFactory classes

    XMLWordPrintableJSON

Details

    Description

      Manually registering a LogicalTypeFactory is cumbersome, but necessary if creating the factory requires constructor parameters.

      For most cases though, a LogicalTypeFactory gets all the information it needs from the schema. This makes it a good candidate for a SPI (using the Java 6 ServiceLoader class). The PR demonstrates that this is quite easy, because the interface already supports registering a LogicalTypeFactory without any additional information.

      Attachments

        Issue Links

          Activity

            People

              opwvhk Oscar Westra van Holthe - Kind
              opwvhk Oscar Westra van Holthe - Kind
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h