[ http://nagoya.apache.org/jira/browse/GERONIMO-489?page=comments#action_55710 ] Aaron Mulder commented on GERONIMO-489: ---------------------------------------
As part of this change, the Kernel variable should be made non-static in the GLC, and all the methods too, for that matter. The GLC should cast the collection of Realms to a ReferenceCollection and then add a listener to it so it can add new realms to its configuration and remove old realms as they come and go. The complexity here is how the GLC should deal with non-realm configuration entries. Currently there are two places we use that: The DirectConfigurationEntry (lets you register anything) and the ServerRealmConfigurationEntry (registers a server-side JaasLoginCoordinator). Those are both MBeans. It might be possible to introduce a new interface with a method like: public JaasLoginModuleConfiguration[] getAppConfigurationEntries(); Then the SecurityRealm, DirectCE, and ServerRealmCE could all be made to implement it and the GLC could get a single collection of those. The only trick would be providing an ObjectName search query that would identify all of them. > Replace the static registration with GeronimoLoginConfiguration with an IOC > assignment of each security realm to the GLC > ------------------------------------------------------------------------------------------------------------------------ > > Key: GERONIMO-489 > URL: http://nagoya.apache.org/jira/browse/GERONIMO-489 > Project: Apache Geronimo > Type: Improvement > Components: security > Reporter: Alan Cabrera > Assignee: Alan Cabrera > > Replace the static registration with GeronimoLoginConfiguration with an IOC > assignment of each security realm to the GLC. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
