Extends
- EventEmitter
Members
service
readonly
Type:
Service
Constructor
- service
- Type:
Service
new AppManager(service)
Creates and manages individual applications which implement AppInterface
Parameters:
Fires:
Methods
- config
- Type:
Provider
- options optional
- Type:
Object
see {App} options for more details
- validator optional
- Type:
Object
json-inspector initialization options
- name
- Type:
String
-
Error
when the App is not found
add(app)
undefined
buildApp(config, options)
App
creates a new HTTP(S) App instance
Parameters:
Fires:
Returns:App
get(name)
AppInterface
receive previously created/registered App by its name
Parameters:
Throws:
AppInterface
Events
- app
- Type:
App
build-app
emitted each time an app which implements AppInterface
is instantiated through this AppManager
.