Interface IConfigBuilder
interface IConfigBuilder
Extends IStandard
A builder for a configuration.
A configuration tells an environment how to find components.
Methods
addConfigurationFromFile()
Configure according to a configuration file. The configuration file is in OmniKit component configuration format.voidaddConfigurationFromFile(stringfileName)
Parameters
fileName
string — Required
Name of a file to load and parse
addRuntime()
Add a runtime,voidaddRuntime(stringid,IRuntime*runtime)
Parameters
id
string — Required
identifier of the time
runtime
IRuntime* — Required
the runtime to add
addFileSystemPath()
Add a filesystems search path entry.voidaddFileSystemPath(stringpath)
Parameters
path
string — Required
Filesystem path
addComponentLoader()
Add a component loader. Component loaders are orderedvoidaddComponentLoader(IComponentLoader*loader)
Parameters
loader
IComponentLoader* — Required
build()
Build a configuration from this builder.IConfig*build()
Returns
IConfig*
new configuration

