Tidy up screwy formatting.

This commit is contained in:
Luke Taylor 2006-04-26 21:19:20 +00:00
parent a7d0f88e01
commit 8400341399

View File

@ -28,15 +28,17 @@ import org.springframework.util.Assert;
/** /**
* Base implementation of {@link ConcurrentSessionControllerImpl} which * Base implementation of {@link ConcurrentSessionControllerImpl} which
* prohibits simultaneous logins. * prohibits simultaneous logins.
*
* <p> * <p>
* By default uses {@link org.acegisecurity.concurrent.SessionRegistryImpl}, * By default uses {@link SessionRegistryImpl},
* although any <code>SessionRegistry</code> may be used. * although any <code>SessionRegistry</code> may be used.
* </p> * </p>
*
* @author Ben Alex
* @version $Id$
*/ */
public class ConcurrentSessionControllerImpl public class ConcurrentSessionControllerImpl implements ConcurrentSessionController,
implements ConcurrentSessionController, InitializingBean, InitializingBean, MessageSourceAware {
MessageSourceAware {
//~ Instance fields ======================================================== //~ Instance fields ========================================================
protected MessageSourceAccessor messages = AcegiMessageSource.getAccessor(); protected MessageSourceAccessor messages = AcegiMessageSource.getAccessor();
@ -63,7 +65,6 @@ public class ConcurrentSessionControllerImpl
* @param allowableSessions DOCUMENT ME! * @param allowableSessions DOCUMENT ME!
* @param registry an instance of the <code>SessionRegistry</code> for * @param registry an instance of the <code>SessionRegistry</code> for
* subclass use * subclass use
*
* @throws ConcurrentLoginException DOCUMENT ME! * @throws ConcurrentLoginException DOCUMENT ME!
*/ */
protected void allowableSessionsExceeded(String sessionId, protected void allowableSessionsExceeded(String sessionId,
@ -72,7 +73,7 @@ public class ConcurrentSessionControllerImpl
if (exceptionIfMaximumExceeded || (sessions == null)) { if (exceptionIfMaximumExceeded || (sessions == null)) {
throw new ConcurrentLoginException(messages.getMessage( throw new ConcurrentLoginException(messages.getMessage(
"ConcurrentSessionControllerImpl.exceededAllowed", "ConcurrentSessionControllerImpl.exceededAllowed",
new Object[] {new Integer(allowableSessions)}, new Object[]{new Integer(allowableSessions)},
"Maximum sessions of {0} for this principal exceeded")); "Maximum sessions of {0} for this principal exceeded"));
} }
@ -134,7 +135,6 @@ public class ConcurrentSessionControllerImpl
* <code>maximumSessions</code> value for the bean. * <code>maximumSessions</code> value for the bean.
* *
* @param authentication to determine the maximum sessions for * @param authentication to determine the maximum sessions for
*
* @return either -1 meaning unlimited, or a positive integer to * @return either -1 meaning unlimited, or a positive integer to
* limit (never zero) * limit (never zero)
*/ */
@ -174,4 +174,4 @@ public class ConcurrentSessionControllerImpl
SessionRegistry sessionRegistry) { SessionRegistry sessionRegistry) {
this.sessionRegistry = sessionRegistry; this.sessionRegistry = sessionRegistry;
} }
} }