classafReflux::RefluxBuilder
sys::Obj afReflux::RefluxBuilder
Use to build and launch a Reflux application. Example:
RefluxBuilder(AppModule#).start() |Reflux reflux, Window window| { reflux.showPanel(MyPanel#) ... }
- addModule
This addModule(Type moduleType)
Adds a module to the registry. Any modules defined with the
@SubModule
facet are also added.Convenience for
registryBuilder.addModule()
- addModules
This addModules(Type[] moduleTypes)
Adds many modules to the registry.
Convenience for
registryBuilder.addModules()
- addModulesFromPod
This addModulesFromPod(Str podName, Bool addDependencies := true)
Inspects the pod's meta-data for the key
afIoc.module
. This is then treated as a CSV list of (qualified) module type names to load.If
addDependencies
istrue
then the pod's dependencies are also inspected for IoC modules.Convenience for
registryBuilder.addModulesFromPod()
- appName
Str appName { private set }
The application name. Taken from the app pod's
proj.name
meta, or the pod name if the meta doesn't exist. Read only.- makeFromAppModule
new makeFromAppModule(Type appModule)
Creates a
BedSheetBuilder
from the givenAppModule
.- makeFromAppModules
new makeFromAppModules(Type[] appModules)
Creates a
BedSheetBuilder
with the givenAppModules
.- makeFromName
new makeFromName(Str modOrPodName, Bool addPodDependencies := true)
Creates a
BedSheetBuilder
.modOrPodName
may be a pod name or a qualifiedAppModule
type name.addPodDependencies
is only used if a pod name is passed in.- options
Str:Obj? options { private set }
Returns options from the IoC
RegistryBuilder
.- registryBuilder
RegistryBuilder registryBuilder := RegistryBuilder.<ctor>() { private set }
The underlying IoC
RegistryBuilder
.- start