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 ofModuleFactory.Context
.
-
-
Constructor Summary
Constructors Constructor Description DefaultModuleContext(Map<String,String> options, ReadableConfig configuration, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns the class loader of the current session.ReadableConfig
getConfiguration()
Gives read-only access to the configuration of the current session.Map<String,String>
getOptions()
Returns the options with which the module is created.
-
-
-
Constructor Detail
-
DefaultModuleContext
public DefaultModuleContext(Map<String,String> options, ReadableConfig configuration, ClassLoader classLoader)
-
-
Method Detail
-
getOptions
public Map<String,String> getOptions()
Description copied from interface:ModuleFactory.Context
Returns the options with which the module is created.An implementation should perform validation of these options.
- Specified by:
getOptions
in interfaceModuleFactory.Context
-
getConfiguration
public ReadableConfig getConfiguration()
Description copied from interface:ModuleFactory.Context
Gives read-only access to the configuration of the current session.- Specified by:
getConfiguration
in interfaceModuleFactory.Context
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:ModuleFactory.Context
Returns the class loader of the current session.The class loader is in particular useful for discovering further (nested) factories.
- Specified by:
getClassLoader
in interfaceModuleFactory.Context
-
-