realm should be a singleton

This commit is contained in:
Sebastian Sdorra
2012-10-02 16:16:13 +02:00
parent f29bb6d983
commit f648f01676

View File

@@ -37,6 +37,7 @@ package sonia.scm.security;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.apache.shiro.authc.AccountException;
import org.apache.shiro.authc.AuthenticationException;
@@ -92,6 +93,7 @@ import javax.servlet.http.HttpServletRequest;
*
* @author Sebastian Sdorra
*/
@Singleton
public class ScmRealm extends AuthorizingRealm
implements RepositoryListener, UserListener
{