public final class EditorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static EditorFactory |
getInstance()
Returns the singleton instance of this factory or creates a new one if no already done.
|
ModuleEditor |
getModule(Module module,
HierarchicalConfiguration config,
ConfigDescriptionEntry[] keyNames)
Returns the module editor that will be most suitable for editing the given module.
|
void |
registerModuleEditor(ModuleEditor editor,
int priority)
Registers a module editor with this factory.
|
public static EditorFactory getInstance()
public void registerModuleEditor(ModuleEditor editor, int priority)
editor
- the editor that should be registered.priority
- the priority.public ModuleEditor getModule(Module module, HierarchicalConfiguration config, ConfigDescriptionEntry[] keyNames)
module
- the module that should be edited.config
- the configuration which will supply the values for the edited keys.keyNames
- the configuration entries which should be edited within the module.Copyright © 2017 Hitachi Vantara. All rights reserved.