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 - addDependenciesis- truethen 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.namemeta, or the pod name if the meta doesn't exist. Read only.
- makeFromModule
- new makeFromModule(Type appModule)- Creates a - RefluxBuilderfrom the given- AppModule.
- makeFromModules
- new makeFromModules(Type[] modules)- Creates a - RefluxBuilderfrom the given- AppModule.
- makeFromName
- new makeFromName(Str modOrPodName, Bool addPodDependencies := true)- Creates a - RefluxBuilder.- modOrPodNamemay be a pod name or a qualified- AppModuletype name.- addPodDependenciesis 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