Package org.apache.flink.table.factories
Class FactoryUtil.DefaultModuleContext
java.lang.Object
org.apache.flink.table.factories.FactoryUtil.DefaultModuleContext
- All Implemented Interfaces:
ModuleFactory.Context
- Enclosing class:
- FactoryUtil
@Internal
public static class FactoryUtil.DefaultModuleContext
extends Object
implements ModuleFactory.Context
Default implementation of
ModuleFactory.Context.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultModuleContext(Map<String, String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionReturns the class loader of the current session.org.apache.flink.configuration.ReadableConfigGives read-only access to the configuration of the current session.Returns the options with which the module is created.
-
Constructor Details
-
DefaultModuleContext
public DefaultModuleContext(Map<String, String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
-
-
Method Details
-
getOptions
Description copied from interface:ModuleFactory.ContextReturns the options with which the module is created.An implementation should perform validation of these options.
- Specified by:
getOptionsin interfaceModuleFactory.Context
-
getConfiguration
public org.apache.flink.configuration.ReadableConfig getConfiguration()Description copied from interface:ModuleFactory.ContextGives read-only access to the configuration of the current session.- Specified by:
getConfigurationin interfaceModuleFactory.Context
-
getClassLoader
Description copied from interface:ModuleFactory.ContextReturns the class loader of the current session.The class loader is in particular useful for discovering further (nested) factories.
- Specified by:
getClassLoaderin interfaceModuleFactory.Context
-