@Internal public static class FactoryUtil.DefaultModuleContext extends Object implements ModuleFactory.Context
ModuleFactory.Context
.Constructor and Description |
---|
DefaultModuleContext(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.
|
Map<String,String> |
getOptions()
Returns the options with which the module is created.
|
public DefaultModuleContext(Map<String,String> options, ReadableConfig configuration, ClassLoader classLoader)
public Map<String,String> getOptions()
ModuleFactory.Context
An implementation should perform validation of these options.
getOptions
in interface ModuleFactory.Context
public ReadableConfig getConfiguration()
ModuleFactory.Context
getConfiguration
in interface ModuleFactory.Context
public ClassLoader getClassLoader()
ModuleFactory.Context
The class loader is in particular useful for discovering further (nested) factories.
getClassLoader
in interface ModuleFactory.Context
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.