Is there any way to map an object for injection not using a bean provider class? I have a command that instantiates and initializes an object and I want that object to be available by injection: this object needs some server data for initializing, and requires the loaderInfo object of the application. So, I don't have that server data when swiz initializes the bean providers, and there seems no way to have access to the loaderInfo in a bean provider anyway...
I know I could map the object, inject it into the command, then call some setters on it, but that seems lame: constructor params are my preference for initializing an object, either manually or by injection.
Any advice?
Thanks for your time!