Injection DSL
inject="{namespace}:extra:extra:extra"Property Annotation
property name="service" inject="id:MyService";
property name="TYPES" inject="id:CustomTypes" scope="this";
property name="roles" inject="id:RoleService:getRoles" scope="instance";property name="service" inject="id:MyService";
property name="TYPES" inject="id:CustomTypes" scope="this";
property name="roles" inject="id:RoleService:getRoles" scope="instance";Constructor Argument Annotation
/**
* @myService.inject UserService
* @cache.inject cachebox:default
*/
function init( required myService, required cache ){
}/**
* @myService.inject UserService
* @cache.inject cachebox:default
*/
function init( required myService, required cache ){
}Setter Method Annotation
Last updated
Was this helpful?