Skip to content

Module Annotation Inject

MasterLinux edited this page Jul 2, 2014 · 5 revisions

#Description The @Inject annotation is used to inject a specific framework module like the Navigator or a custom one. If the module does not exist an ModuleIsMissingException is thrown.

#Usage

@Inject("Navigator")
Navigator _navigator;

Instead of using @Inject to inject the Navigator or other standard framework modules it is possible to use shortcut annotations provided by the framework

@Navigator
Navigator _navigator;
Clone this wiki locally