Provider Namespace
Inject object providers, please refer to our provider section in this guide.
DSL
Description
provider
Build an object provider that will return the mapping according to the property, method or argument name.
provider:{name}
Build an object provider that will return the {name} mapping.
provider:{injectionDSL}
Build an object provider that will return the object that the {injectionDSL} refers to
1
// using id
2
property name="timedService" inject="provider:TimedService";
3
4
// using DSL
5
property name="timedService" inject="provider:logbox:logger:{this}";
Copied!
Last modified 6mo ago
Copy link