Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LightFramework

一个全量的空框架

Hierarchy

Implements

Properties

Protected BaseContextLoggerClass

BaseContextLoggerClass: any

app

app: any

Protected appLogger

appLogger: ILogger

Protected applicationContext

applicationContext: IMidwayContainer

configurationOptions

configurationOptions: any

Protected defaultContext

defaultContext: object

Type declaration

Protected isMainFramework

isMainFramework: boolean

Protected isTsMode

isTsMode: boolean = true

Protected logger

logger: ILogger

Methods

Protected afterContainerDirectoryLoad

Protected afterContainerInitialize

Protected afterContainerReady

applicationInitialize

Protected beforeContainerInitialize

Protected beforeStop

  • beforeStop(): Promise<void>

configure

Protected containerDirectoryLoad

Protected containerInitialize

Protected containerReady

Protected containerStop

  • containerStop(): Promise<void>

Protected createContextLogger

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

createLogger

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

Protected defineApplicationProperties

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

getAppDir

  • getAppDir(): string

getApplication

  • getApplication(): any

getApplicationContext

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

getCoreLogger

  • getCoreLogger(): ILogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

getDefaultContextLoggerClass

  • getDefaultContextLoggerClass(): any

getFrameworkName

  • getFrameworkName(): string

getFrameworkType

getLogger

  • getLogger(name?: string): ILogger

getProjectName

  • getProjectName(): any

initialize

Protected initializeInfo

Protected initializeLogger

loadExtension

  • loadExtension(): Promise<void>

loadLifeCycles

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

run

  • run(): Promise<void>

Protected setContextLoggerClass

  • setContextLoggerClass(BaseContextLogger: any): void

stop

  • stop(): Promise<void>

Protected stopLifeCycles

  • stopLifeCycles(): Promise<void>

Generated using TypeDoc