@Internal public static class FactoryUtil.DefaultModuleContext extends Object implements ModuleFactory.Context
ModuleFactory.Context.| Constructor and Description |
|---|
DefaultModuleContext(Map<String,String> options,
org.apache.flink.configuration.ReadableConfig configuration,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the class loader of the current session.
|
org.apache.flink.configuration.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.
|
public DefaultModuleContext(Map<String,String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
public Map<String,String> getOptions()
ModuleFactory.ContextAn implementation should perform validation of these options.
getOptions in interface ModuleFactory.Contextpublic org.apache.flink.configuration.ReadableConfig getConfiguration()
ModuleFactory.ContextgetConfiguration in interface ModuleFactory.Contextpublic ClassLoader getClassLoader()
ModuleFactory.ContextThe class loader is in particular useful for discovering further (nested) factories.
getClassLoader in interface ModuleFactory.ContextCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.