Aller au contenu principal
Version: Next

abstractBaseFramework <APP, CTX, OPT, ResOrNext, Next>

Implements

Index

Constructors

constructor

Properties

publicapp

app: APP

readonlyapplicationContext

applicationContext: IMidwayContainer

configService

configService: MidwayConfigService

publicconfigurationOptions

configurationOptions: OPT

environmentService

environmentService: MidwayEnvironmentService

informationService

informationService: MidwayInformationService

loggerService

loggerService: MidwayLoggerService

middlewareService

middlewareService: MidwayMiddlewareService<CTX, ResOrNext, Next>

mockService

mockService: MidwayMockService

Methods

publicabstractapplicationInitialize

publicapplyMiddleware

  • Type parameters

    • R
    • N

abstractconfigure

  • configure(options?: OPT): any

publiccreateLogger

publicgetAppDir

  • getAppDir(): string

publicgetApplication

  • getApplication(): APP

publicgetApplicationContext

publicgetBaseDir

  • getBaseDir(): string

publicgetConfiguration

  • getConfiguration(key?: string): any

publicgetCoreLogger

publicgetCurrentEnvironment

  • getCurrentEnvironment(): string

publicgetFrameworkName

  • getFrameworkName(): string

publicgetLogger

  • getLogger(name?: string): any

publicgetMiddleware

publicgetNamespace

  • getNamespace(): string

publicgetProjectName

  • getProjectName(): string

init

publicinitialize

isEnable

  • isEnable(): boolean

publicabstractrun

  • run(): Promise<void>

publicrunGuard

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

publicsetNamespace

  • setNamespace(namespace: string): void

publicstop

  • stop(): Promise<void>

publicuseFilter

publicuseGuard

publicuseMiddleware