karee_inject library
Karee.annotations
Support for Karee annotations.
this lib provides annotations as
- Autowired
- Controller
- Persistable
- Screen
- Service
- Value
It also provide core injector
Classes
- AutowiredAnnotation
- Annotation for injecting Services and Controller
- ControllerReflectable
- ControllerReflectable constant class used to create instance of Controller annotation
- KareeInjector
- Karee part used to retrieve injectable via its type.
- Module
- Module class is used to annotate other classes that define Module.
- Persistable
- Not used annotation
- Screen
- Annotation used to annotate screens.
- ServiceAnnotation
- Value
-
Annotation used to read and inject value from application configuration file.
located in
resources/config/application.yaml
Constants
- Autowired → const AutowiredAnnotation
- Description
- Controller → const ControllerReflectable
- Controller Instance of ControllerReflectable, used as Annotation on all controller's class in project.
- Service → const ServiceAnnotation
- Service annotation instance.
Functions
-
subscribeController(
dynamic controller) → void - subscribeController: Function used by application to subscribe their controllers in core library.