public final class CatalogProviderRegistry extends Object
CatalogProviderFactorys registered via
META-INF/services/gudusoft.gsqlparser.catalog.runtime.CatalogProviderFactory or
programmatically via register(CatalogProviderFactory).
Plan §7.2 / §13.1. The registry is process-global, lazily initialized from the
ServiceLoader, and synchronized on every mutator. Programmatic registration
replaces any previous registration with the same CatalogProviderId.
| Modifier and Type | Method and Description |
|---|---|
static CatalogProvider |
create(CatalogProviderId id)
Look up the factory for
id and create a new CatalogProvider. |
static void |
register(CatalogProviderFactory factory) |
static List<CatalogProviderFactory> |
registered() |
public static void register(CatalogProviderFactory factory)
public static CatalogProvider create(CatalogProviderId id)
id and create a new CatalogProvider. Throws
CatalogException when no factory matches — callers should ensure the
factory is registered before invoking.public static List<CatalogProviderFactory> registered()