This represents a callback. The
ControllerContext
can have several callbacks associated
with it. Callbacks can either be invoked when installing the owning
ControllerContext
or
when uninstalling the owning
ControllerContext
. The
ControllerContext's
DependencyInfo maintains a collection of install callbacks and a collection of
uninstall callbacks.
An install callback is a listener for when other beans of a certain type are installed into
the
Controller, and an uninstall callback is a listener for when other beans of a certain type
are uninstalled from the
Controller. Beans with callbacks must expose a method taking a single
parameter, or a property/attribute which is a collection containing elements of a certain type.
The type of the parameter, if using methods, or of the property/attribute collection type specifies
the type of bean install/uninstalls this bean listens to.
When installing a bean implementing the given type, the associated install callback method on the
bean owning this callback gets called, and when uninstalling a bean implementing the given type,
the associated uninstall callback method on the bean owning this callback gets called. If a
property/attribute is used installed beans get added to the collection of the bean owning this
callback, and uninstalled beans get removed from the collection.