Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidwayWebFramework

Hierarchy

Implements

Properties

Protected BaseContextLoggerClass

BaseContextLoggerClass: any

app

Protected appLogger

appLogger: ILogger

Protected applicationContext

applicationContext: IMidwayContainer

configurationOptions

configurationOptions: IMidwayWebConfigurationOptions

Protected defaultContext

defaultContext: object

Type declaration

Protected isMainFramework

isMainFramework: boolean

Protected isTsMode

isTsMode: boolean

Protected logger

logger: ILogger

Protected loggers

loggers: object

Type declaration

  • [name: string]: EggLogger

prioritySortRouters

prioritySortRouters: Array<object> = []

Methods

Protected afterContainerDirectoryLoad

  • afterContainerDirectoryLoad(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected afterContainerInitialize

  • afterContainerInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected afterContainerReady

  • afterContainerReady(options: Partial<IMidwayBootstrapOptions>): Promise<void>

applicationInitialize

  • applicationInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected beforeContainerInitialize

  • beforeContainerInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>

Protected beforeStop

  • beforeStop(): Promise<void>

configure

Protected containerDirectoryLoad

  • containerDirectoryLoad(options: IMidwayBootstrapOptions): Promise<void>

Protected containerInitialize

  • containerInitialize(options: IMidwayBootstrapOptions): Promise<void>

Protected containerReady

  • containerReady(options: IMidwayBootstrapOptions): Promise<void>

Protected containerStop

  • containerStop(): Promise<void>

Protected createContextLogger

  • createContextLogger(ctx: Context, name?: string): ILogger

createLogger

  • createLogger(name: string, option?: LoggerOptions): ILogger

Protected createRouter

  • createRouter(routerOptions: any): Router

Protected defineApplicationProperties

  • defineApplicationProperties(applicationProperties?: object, whiteList?: string[]): void

generateController

  • generateController(controllerMapping: string, routeArgsInfo?: RouterParamValue[], routerResponseData?: any[]): Middleware<DefaultState, IMidwayKoaContext>

generateMiddleware

getAppDir

  • getAppDir(): string

getApplication

getApplicationContext

  • getApplicationContext(): IMidwayContainer

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

getCoreLogger

  • getCoreLogger(): ILogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

getDefaultContextLoggerClass

  • getDefaultContextLoggerClass(): typeof MidwayKoaContextLogger

getFrameworkName

  • getFrameworkName(): string

getFrameworkType

getLogger

  • getLogger(name?: string): any

getProjectName

  • getProjectName(): any

initialize

  • initialize(options: IMidwayBootstrapOptions): Promise<void>

Protected initializeInfo

  • initializeInfo(options: IMidwayBootstrapOptions): Promise<void>

Protected initializeLogger

  • initializeLogger(): Promise<void>

loadExtension

  • loadExtension(): Promise<void>

loadLifeCycles

  • loadLifeCycles(isForce?: boolean): Promise<void>

loadMidwayController

  • loadMidwayController(): Promise<void>

run

  • run(): Promise<void>

Protected setContextLoggerClass

  • setContextLoggerClass(BaseContextLogger: any): void

stop

  • stop(): Promise<void>

Protected stopLifeCycles

  • stopLifeCycles(): Promise<void>

Generated using TypeDoc