跳到主要内容
版本:Next

IMidwayFramework <APP, CTX, CONFIG, ResOrNext, Next>

Implemented by

Index

Properties

app

app: APP

configurationOptions

configurationOptions: CONFIG

Methods

applyMiddleware

configure

  • configure(options?: CONFIG): any

createLogger

getAppDir

  • getAppDir(): string

getApplication

  • getApplication(): APP

getApplicationContext

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

getCoreLogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

getFrameworkName

  • getFrameworkName(): string

getLogger

getMiddleware

getNamespace

  • getNamespace(): string

getProjectName

  • getProjectName(): string

initialize

isEnable

  • isEnable(): boolean

run

  • run(): Promise<void>

runGuard

  • runGuard(ctx: CTX, supplierClz: new (...args: any[]) => any, methodName: string): Promise<boolean>

setNamespace

  • setNamespace(namespace: string): void

stop

  • stop(): Promise<void>

useFilter

useGuard

useMiddleware