On Wed, 9 Mar 2022 at 09:06, Ryan Skraba <r...@skraba.com> wrote:

> I'm not sure about the factory/SPI approach -- it almost seems like
> these classes would need to be explicitly chosen and configured by the
> user, as opposed to plugged in.  I haven't given it too much thought
> though!  Where would a pluggable version be appropriate?
>

That's the beauty of a SPI: it's automatically discovered using the
java.util.ServiceLoader.

We could also use this to automatically register logical types, as opposed
to manually registering them via LogicalTypes#register(...) or on e.g. the
Maven plugin.


Kind regards,
Oscar

-- 
✉️ Oscar Westra van Holthe - Kind <os...@westravanholthe.nl>

Reply via email to