public final class CatalogInputReaders extends Object
CatalogInputReaderFactorys registered via
META-INF/services/gudusoft.gsqlparser.catalog.input.CatalogInputReaderFactory or
programmatically via register(CatalogInputReaderFactory).
Plan §7.1 / §13.1. Process-global registry; lazily initialized from the
ServiceLoader; programmatic registration takes precedence on
CatalogInputKind collision.
| Modifier and Type | Method and Description |
|---|---|
static CatalogInputReader |
forSource(CatalogInputSource source,
CatalogLoadOptions options)
Unique-match selector.
|
static void |
register(CatalogInputReaderFactory factory) |
static List<CatalogInputReaderFactory> |
registered() |
public static void register(CatalogInputReaderFactory factory)
public static CatalogInputReader forSource(CatalogInputSource source, CatalogLoadOptions options) throws CatalogInputException
supports(...) the source. Throws CatalogInputException on
zero or multiple matches; the exception message lists the candidates so callers
can disambiguate by setting CatalogInputSource.declaredKind().CatalogInputExceptionpublic static List<CatalogInputReaderFactory> registered()