From 8b88700079255473fc427e08620463f44a8181f1 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sun, 6 Nov 2005 21:45:49 +0000 Subject: [PATCH] Tidied up cut-n-pasted Javadoc. --- .../domain/dao/DetachmentContextHolder.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/domain/src/main/java/org/acegisecurity/domain/dao/DetachmentContextHolder.java b/domain/src/main/java/org/acegisecurity/domain/dao/DetachmentContextHolder.java index c4a53e2a34..0d2c5722d9 100644 --- a/domain/src/main/java/org/acegisecurity/domain/dao/DetachmentContextHolder.java +++ b/domain/src/main/java/org/acegisecurity/domain/dao/DetachmentContextHolder.java @@ -15,8 +15,6 @@ package net.sf.acegisecurity.domain.dao; -import net.sf.acegisecurity.context.SecurityContextImpl; - /** * InheritableThreadLocal which indicates whether a {@link Dao} @@ -41,24 +39,19 @@ public class DetachmentContextHolder { //~ Methods ================================================================ /** - * Specifies whether or not detached in SecurityContext with the current thread of - * execution. + * Sets whether or not detached domain object instances should be returned + * within the current thread of execution. * - * @param + * @param alwaysReturnDetached if true then detached instances should be returned. */ public static void setForceReturnOfDetachedInstances(boolean alwaysReturnDetached) { contextHolder.set(alwaysReturnDetached); } /** - * Obtains the SecurityContext associated with the current - * thread of execution. If no SecurityContext has been - * associated with the current thread of execution, a new instance of - * {@link SecurityContextImpl} is associated with the current thread and - * then returned. + * Returns the boolean value detachment policy which has been set for the current + * thread (defaults to false). * - * @return the current SecurityContext (guaranteed to never be - * null) */ public static boolean isForceReturnOfDetachedInstances() { if (contextHolder.get() == null) {