re initialize CookieSettings too

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1420240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-11 15:59:53 +00:00
parent 8fc98776f6
commit 0d457b816e
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.apache.archiva.admin.model.beans.ArchivaRuntimeConfiguration;
import org.apache.archiva.admin.model.runtime.ArchivaRuntimeConfigurationAdmin;
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionConfiguration;
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory;
import org.apache.archiva.redback.policy.CookieSettings;
import org.apache.archiva.redback.policy.PasswordRule;
import org.apache.archiva.redback.users.UserManager;
import org.apache.archiva.rest.api.model.UserManagerImplementationInformation;
@ -107,6 +108,14 @@ public class DefaultArchivaRuntimeConfigurationService
passwordRule.initialize();
}
Collection<CookieSettings> cookieSettingsList =
applicationContext.getBeansOfType( CookieSettings.class ).values();
for ( CookieSettings cookieSettings : cookieSettingsList )
{
cookieSettings.initialize();
}
return Boolean.TRUE;
}
catch ( RepositoryAdminException e )