public class ModuleFactory extends Object implements com.tridion.configuration.Configurable
Modules's.| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.tridion.configuration.Configuration config)
Configures the
ModuleFactory. |
Module |
createModule(com.tridion.configuration.Configuration config)
Creates a
Module based on the passed Configuration. |
Module |
createModule(com.tridion.configuration.Configuration config,
Processor processor)
Creates a
Module based on the passed Configuration with the passed
Processor. |
Module |
createModuleOnPreference(com.tridion.configuration.Configuration config,
Processor processor)
Creates
Module class by calling constructor with single config argument. |
static ModuleFactory |
getInstance()
Standard singleton method to return an instance.
|
public static ModuleFactory getInstance()
public void configure(com.tridion.configuration.Configuration config)
throws com.tridion.configuration.ConfigurationException
ModuleFactory.configure in interface com.tridion.configuration.Configurableconfig - Configuration object to get configuration entries from.com.tridion.configuration.ConfigurationException - If something goes wrong configuring the ModuleFactory.public Module createModuleOnPreference(com.tridion.configuration.Configuration config, Processor processor) throws com.tridion.configuration.ConfigurationException
Module class by calling constructor with single config argument. If class has
no particular constructor then the constructor with config and processor is called.
If neither of the attempts are successful, or calling constructors lead other errors, an exception will be
thrown.config - Configuration containing a binding for the Module.processor - Processor which will be passed to the Module's constructor.Module initialised with the passed Processor.com.tridion.configuration.ConfigurationException - If no processor has been registered for the passed action or something goes wrong
constructing or instantiating the Module.public Module createModule(com.tridion.configuration.Configuration config) throws com.tridion.configuration.ConfigurationException
Module based on the passed Configuration.config - Configuration containing a binding for the Module.Module initialised with the passed Processor.com.tridion.configuration.ConfigurationException - If no processor has been registered for the passed action or something goes wrong
constructing or instantiating the Module.public Module createModule(com.tridion.configuration.Configuration config, Processor processor) throws com.tridion.configuration.ConfigurationException
Module based on the passed Configuration with the passed
Processor.config - Configuration containing a binding for the Module.processor - Processor which will be passed to the Module's constructor.Module initialised with the passed Processor.com.tridion.configuration.ConfigurationException - If no processor has been registered for the passed action or something goes wrong
constructing or instantiating the Module.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries