const classafBounce::BedServer
sys::Obj afBounce::BedServer
Initialises a Bed App without the overhead of starting the wisp web server.
BedServer is a const class so it may be used in multiple threads. Do this to create BedClients in different threads to make concurrent calls - handy for load testing.
- addModule
BedServer addModule(Type iocModule)Adds an extra (test) module, should you wish to override service behaviour.
- autobuild
Obj autobuild(Type type, Obj?[] ctorArgs := Obj#.emptyList())Helper method - tap into BedSheet's afIoc registry
- dependencyByType
Obj dependencyByType(Type dependencyType)Helper method - tap into BedSheet's afIoc registry
- injectIntoFields
Obj injectIntoFields(Obj service)Helper method - tap into BedSheet's afIoc registry
- makeClient
BedClient makeClient()Creates a pack of
Butterwhose middleware ends with a BedTerminator which makes requests to the Bed app.- makeWithModule
new makeWithModule(Type iocModule)Create a instance of
BedSheetwith the given IoC module (usually your web app).- makeWithName
new makeWithName(Str qname)Create a instance of
BedSheetwith the given qname of either a Pod or a Type.- makeWithPod
new makeWithPod(Pod webApp)Create a instance of
BedSheetwith the given pod (usually your web app).- registry
Registry registry { private set }The
afIocregistry - read only.- serviceById
Obj serviceById(Str serviceId)Helper method - tap into BedSheet's afIoc registry
- shutdown
BedServer shutdown()Shutdown
afBedSheet- startup
BedServer startup()Startup
afBedSheet