This might be a bit tricky - maybe the best thing to do here would be to create your own WebEnvironment implementation (see Shiro's IniWebEnvironment implementation for hints - specifically look at the createWebSecurityManager method. You can create your 'seed' object Map in there before creating the SecurityManager).
Another idea might be to use Shiro's Factory interface - every time the INI config mechanism finds a factory, the resolved bean is whatever the factory provides, so you have full control over returning whatever you want from that. I hope this helps. If you're having problems trying this out, definitely feel free to ask for more help. Also, please create any Jira issues (e.g. feature requests) that you feel might be needed to make your life easier. HTH, -- Les Hazlewood | @lhazlewood CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282 On Thu, May 2, 2013 at 12:11 PM, Cemo <[email protected]> wrote: > Hi, > > I am trying to injecting some of highly difficult objects in my Ini file. > For realm and session manager I would like to use custom proxy instances > based on Interfaces. > > I am programmatically registering as this: > > addServletListeners(new EnvironmentLoaderListener()); > > Is there a way to register some beans before my EnvironmentLoaderListener > initialising? > > Thanks
