Virtual Provider Mapping
You can also use our cool mapping DSL to create mappings that refer to provided objects by using the DSL construction type:
1
// map an object to a virtual provided object
2
map("coolObjectProvider")
3
.toDSL("provider:HardToConstructObject");
4
5
// map an object an set the explicit DI arguments or DI setters to virtual provided objects
6
map("SearchService")
7
.to("model.search.SearchService")
8
.initArg(name="searchCriteria",dsl="provider:requestCriteria");
Copied!
You can use the following mapping methods to map to virtual providers by using their dsl arguments:
    mapDSL()
    mapDSL()
    property(name="",dsl="")
    setter(name="",dsl="")
    methodArg(name="",dsl="")
Copy link