Tidied up cut-n-pasted Javadoc.
This commit is contained in:
parent
0aef31d302
commit
8b88700079
|
@ -15,8 +15,6 @@
|
||||||
|
|
||||||
package net.sf.acegisecurity.domain.dao;
|
package net.sf.acegisecurity.domain.dao;
|
||||||
|
|
||||||
import net.sf.acegisecurity.context.SecurityContextImpl;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>InheritableThreadLocal</code> which indicates whether a {@link Dao}
|
* <code>InheritableThreadLocal</code> which indicates whether a {@link Dao}
|
||||||
|
@ -41,24 +39,19 @@ public class DetachmentContextHolder {
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies whether or not detached in <code>SecurityContext</code> with the current thread of
|
* Sets whether or not detached domain object instances should be returned
|
||||||
* execution.
|
* within the current thread of execution.
|
||||||
*
|
*
|
||||||
* @param
|
* @param alwaysReturnDetached if true then detached instances should be returned.
|
||||||
*/
|
*/
|
||||||
public static void setForceReturnOfDetachedInstances(boolean alwaysReturnDetached) {
|
public static void setForceReturnOfDetachedInstances(boolean alwaysReturnDetached) {
|
||||||
contextHolder.set(alwaysReturnDetached);
|
contextHolder.set(alwaysReturnDetached);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains the <code>SecurityContext</code> associated with the current
|
* Returns the boolean value detachment policy which has been set for the current
|
||||||
* thread of execution. If no <code>SecurityContext</code> has been
|
* thread (defaults to false).
|
||||||
* associated with the current thread of execution, a new instance of
|
|
||||||
* {@link SecurityContextImpl} is associated with the current thread and
|
|
||||||
* then returned.
|
|
||||||
*
|
*
|
||||||
* @return the current <code>SecurityContext</code> (guaranteed to never be
|
|
||||||
* <code>null</code>)
|
|
||||||
*/
|
*/
|
||||||
public static boolean isForceReturnOfDetachedInstances() {
|
public static boolean isForceReturnOfDetachedInstances() {
|
||||||
if (contextHolder.get() == null) {
|
if (contextHolder.get() == null) {
|
||||||
|
|
Loading…
Reference in New Issue