/** * Returns a new lock implementation depending on the platform support. */ public static OptimisticLock newOptimistic() { if (optimisticLockImplementation == null) { initializeOptimisticLock(); } try { return optimisticLockImplementation.newInstance(); } catch (Exception ex) { throw new Error(ex); } }
/** * Returns a new lock implementation depending on the platform support. */ public static OptimisticLock newOptimistic() { if (optimisticLockImplementation == null) { initializeOptimisticLock(); } try { return optimisticLockImplementation.newInstance(); } catch (Exception ex) { throw new Error(ex); } }