getContainer () → {Object}
Returns dependency injection container.
Returns:
|
getEventRouter () → {Object}
|
getRequestRouter () → {Object}
|
listensEvent (event) → {boolean}
Returns true if application can process the event. Only event routes, that are registered in the event router, are allowed.
Parameters:
Name |
Type |
Description |
event |
string
|
Event name. |
Returns:
|
processEvent (event, dataopt)
Gets event route and forwards it to processRequest() method. Only event routes, that are registered in the event router, are allowed.
AppManager.processEvent() uses this method as an entry point into the application.
Parameters:
Name |
Type |
Attributes |
Description |
event |
string
|
|
Event name. |
data |
Object
|
<optional>
|
Application can pass the data to the event handler. (optional) |
Throws:
|
processRequest (request, senderopt)
Processes the request. Tries to convert any request to a request route.
Parameters:
Name |
Type |
Attributes |
Description |
request |
string
|
Object
|
|
Request string or route object. |
sender |
string
|
Object
|
<optional>
|
Controller that sent this request. (optional) |
Throws:
|
toString () → {string}
Returns a string representation of the object.
Returns:
|