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

Source

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

Source

This addModules(Type[] moduleTypes)

Adds many modules to the registry.

Convenience for registryBuilder.addModules()

addModulesFromPod

Source

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 is true then the pod's dependencies are also inspected for IoC modules.

Convenience for registryBuilder.addModulesFromPod()

appName

Source

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

Source

new makeFromAppModule(Type appModule)

Creates a BedSheetBuilder from the given AppModule.

makeFromAppModules

Source

new makeFromAppModules(Type[] appModules)

Creates a BedSheetBuilder with the given AppModules.

makeFromName

Source

new makeFromName(Str modOrPodName, Bool addPodDependencies := true)

Creates a BedSheetBuilder. modOrPodName may be a pod name or a qualified AppModule type name. addPodDependencies is only used if a pod name is passed in.

options

Source

Str:Obj? options { private set }

Returns options from the IoC RegistryBuilder.

registryBuilder

Source

RegistryBuilder registryBuilder := RegistryBuilder.<ctor>() { private set }

The underlying IoC RegistryBuilder.

start

Source

Void start(|Reflux,Window? onOpen := null)