5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * The contents of this file are subject to the terms of the Common Development and
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * Distribution License (the License). You may not use this file except in compliance with the
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * specific language governing permission and limitations under the License.
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * When distributing Covered Software, include this CDDL Header Notice in each file and include
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * Header, with the fields enclosed by brackets [] replaced by your own identifying
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * information: "Portions copyright [year] [name of copyright owner]".
753be37289cb1c9415b4a941fc7fbfab89e5e407Peter Major * Copyright 2014 ForgeRock AS.
753be37289cb1c9415b4a941fc7fbfab89e5e407Peter Majorimport org.forgerock.openam.shared.concurrency.LockFactory;
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * Maintains a singleton instance to the shared lock factory.
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * This factory is intended to be used when concurrent policy changes are not atomic. The retrieved lock
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * can be used to protect the non-atomic logic, blocking other threads until all operations are completed.
5bd7c2a85e8db9a53fad1e3cae9209c5e984c267Andrew Forrest * @return the singleton lock factory instance.