On Thu, Feb 13, 2014 at 11:49 PM, Tobias Bocanegra <tri...@apache.org> wrote: > this callback would rely on some sort of (non-osgi) list of > pre-configured factories, right? > eg some sort of LoginModuleFactoryRegistryImpl that is added to the > authentication configuration?
Sort of. As Jukka mentioned the code which configures Oak programatically in non OSGi env can also provide a list of LoginModuleFactory as part of Security setup. In OSGi env get them via DS > this has one caveat, that you could register 1 factory per class (if > you are using the factories class name as identifier). otherwise you > would need to introduce some kind of factory pid. Yup. For completeness and to cover all cases you can have some factory property (similar to service property in OSGi). And that can be passed to LoginModuleFactory as argument so that it can instantiate right LM impl Chetan Mehrotra