AppManager

Extends

  • EventEmitter
service
readonly
Type:
Service
new AppManager(service)

Creates and manages individual applications which implement AppInterface

Parameters:
Fires:
add(app)undefined

adds app to its internal stack

Parameters:
Returns: undefined
buildApp(config, options)App

creates a new HTTP(S) App instance

Parameters:
  • config
    • Type: Provider
  • options optional
    • Type: Object
    • see {App} options for more details

      • validator optional
        • Type: Object
        • json-inspector initialization options

Fires:
Returns: App
get(name)AppInterface

receive previously created/registered App by its name

Parameters:
  • name
    • Type: String
Throws:
  • Error
    • when the App is not found

Returns: AppInterface
build-app

emitted each time an app which implements AppInterface is instantiated through this AppManager.

Properties:
  • app
comments powered by Disqus