classafReflux::RefluxBuilder
sys::Obj afReflux::RefluxBuilder
@
Js
Use to build and launch a Reflux application. Example:
RefluxBuilder(AppModule#).start() |Reflux reflux, Window window| { reflux.showPanel(MyPanel#) ... }
- addModule
Adds an IoC module to the registry.
- addModules
This addModules(Obj[] modules)
Adds many IoC modules to the registry.
- 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.- makeFromModule
new makeFromModule(Type appModule)
Creates a
RefluxBuilder
from the givenAppModule
.- makeFromModules
new makeFromModules(Type[] modules)
Creates a
RefluxBuilder
from the givenAppModule
.- makeFromName
new makeFromName(Str modOrPodName, Bool addPodDependencies := true)
Creates a
RefluxBuilder
.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