@Internal public static class FactoryUtil.DefaultCatalogContext extends Object implements CatalogFactory.Context
CatalogFactory.Context
.Constructor and Description |
---|
DefaultCatalogContext(String name,
Map<String,String> options,
ReadableConfig configuration,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Returns the class loader of the current session.
|
ReadableConfig |
getConfiguration()
Gives read-only access to the configuration of the current session.
|
String |
getName()
Returns the name with which the catalog is created.
|
Map<String,String> |
getOptions()
Returns the options with which the catalog is created.
|
public DefaultCatalogContext(String name, Map<String,String> options, ReadableConfig configuration, ClassLoader classLoader)
public String getName()
CatalogFactory.Context
getName
in interface CatalogFactory.Context
public Map<String,String> getOptions()
CatalogFactory.Context
An implementation should perform validation of these options.
getOptions
in interface CatalogFactory.Context
public ReadableConfig getConfiguration()
CatalogFactory.Context
getConfiguration
in interface CatalogFactory.Context
public ClassLoader getClassLoader()
CatalogFactory.Context
The class loader is in particular useful for discovering further (nested) factories.
getClassLoader
in interface CatalogFactory.Context
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.