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

Source

This addModule(Obj module)

Adds an IoC module to the registry.

addModules

Source

This addModules(Obj[] modules)

Adds many IoC modules to the registry.

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.

makeFromModule

Source

new makeFromModule(Type appModule)

Creates a RefluxBuilder from the given AppModule.

makeFromModules

Source

new makeFromModules(Type[] modules)

Creates a RefluxBuilder from the given AppModule.

makeFromName

Source

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

Creates a RefluxBuilder. 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)