Registering a Custom Scope
1
customScopes = {
2
ortus = "path.model.dsl.OrtusScope"
3
};
4
5
or
6
mapScope("ortus","path.model.dsl.OrtusScope");
Copied!
Now I can use the ortus scope in my mappings DSL and even my annotations, isn't that cool!
1
component scope="ortus"{
2
3
}
4
5
// map it
6
map("Luis")
7
.to("model.path.LuisService")
8
.into("Ortus");
Copied!
Copy link