I have a “security module” that has service models that are common and maybe used in the parent application it is being loaded into. I fully understand that I need to map my model’s with Wirebox.
something like
map(“sec@userService”).to(modelMapping & “.model.user.userService”);
map(“sec@roleService”).to(modelMapping & “.model.role.roleService”);
etc.
but my module has many models, is there a current way to provide that namespace “sec@” to all my models inside that module?
something like
mapNamespace(“sec”).to(modelMapping & “.model”);
so if i do a getModel(“sec@group.groupService”) it knows to expand the sec@ !
I don’t think we have something like that included but you can easily do this. Remember that the binde is programmatic. Just create your own map function locally and there prefix it.
Luis Majano
CEO
Ortus Solutions, Corp
Toll Free/Fax: 1-888-557-8057
Direct: 909-248-3408 www.ortussolutions.com
Twitter: @lmajano, @ortussolutions
I have traced this and builders are registered once the injector starts up, that is why in the main parent app it works.
At this point in time I see no why to alter it at runtime. So if you want this then please create a ticket for it and we can start evaluating how to do this at runtime: https://ortussolutions.atlassian.net/browse/WIREBOX