Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidwayApplication

Hierarchy

  • any
    • MidwayApplication

Index

Properties

Router

Router: any = Router

Accessors

__computed

  • get __computed(): string

appDir

  • get appDir(): string

applicationContext

  • get applicationContext(): any

baseDir

  • get baseDir(): string
  • The current code base directory of application in typescript mode is include src

    member

    {String}

    Returns string

enablePlugins

  • get enablePlugins(): any

pluginContext

  • get pluginContext(): any

Methods

dumpConfig

  • dumpConfig(): void

generateController

  • generateController(controllerMapping: string): function
  • Parameters

    • controllerMapping: string

    Returns function

      • (context: T, next: function): void
      • Parameters

        • context: T
        • next: function
            • (): Promise<any>
            • Returns Promise<any>

        Returns void

getApplicationContext

  • getApplicationContext(): MidwayContainer

getConfig

  • getConfig(key?: any): any

getLogger

  • getLogger(name?: any): any

getPlugin

  • getPlugin(pluginName: any): any

getPluginContext

  • getPluginContext(): any

Generated using TypeDoc