classafBedSheet::BedSheetBuilder

sys::Obj
  afBedSheet::BedSheetBuilder
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.

buildRegistry

Source

Registry buildRegistry()

Build the IoC Registry. Note the registry will still need to be started.

make

Source

new make(Str appName, Bool addPodDependencies := true)

Creates a BedSheetBuilder. If

options

Source

Str:Obj? options { private set }

Returns the options from the IoC RegistryBuilder. Read only.

port

Source

Int port

The HTTP port to run the app on. Defaults to 8069

registryBuilder

Source

RegistryBuilder registryBuilder { private set }

The underlying IoC RegistryBuilder. Read only.

startWisp

Source

Int startWisp(Int port := 8069, Bool proxy := false, Str? env := null)

Convenience method to start a Wisp server running BedSheet.