In Bootstrappers, methods can be annotated with hooks to attach scripts to the overall setup and teardown procedure of the application.

Constants

afterBindings → dynamic

This hook will run just after every Bootstrapper has run its main bindings hook(s).

'bootstrap:afterBindings'
afterInit → dynamic

This hook will be run after every Bootstrapper has run its init hook(s).

'bootstrap:afterInit'
afterInteraction → dynamic

This hook is run just after the main interaction hook(s).

'bootstrap:afterInteraction'
afterReaction → dynamic

This hook is run just after the main reaction hook(s).

'bootstrap:afterReaction'
beforeBindings → dynamic

Any bindings that must be made to the IoCContainer before the actual bindings hook is run will be made in a beforeBindings hook.

'bootstrap:beforeBindings'
beforeExit → dynamic

This hook will be run after the program has received the exit command.

'bootstrap:beforeExit'
beforeInteraction → dynamic

This hook is run in preparation of the main interaction hook(s).

'bootstrap:beforeInteraction'
beforeReaction → dynamic

This hook is run in preparation of the main reaction hook(s).

'bootstrap:beforeReaction'
bindings → dynamic

This hook is the main place to make bindings in the global IoCContainer that will be available throughout the lifetime of the application.

'bootstrap:bindings'
exit → dynamic

This final hook contains the deinitialization scripts, in which all ports and streams must be closed.

'bootstrap:exit'
init → dynamic

This hook will be the first to run, and should contain plugin interal initialization.

'bootstrap:init'
interaction → dynamic

This hook should contain any cross Bootstrapper communication.

'bootstrap:interaction'
reaction → dynamic

This hook should contain any scripts that is a reaction to the messages sent to other Bootstrappers in the interaction hook(s).

'bootstrap:reaction'

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited