Class ModelLockProvider
java.lang.Object
com.nomagic.magicdraw.foundation.util.ModelLockProvider
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.util.ModelLockProvider
public abstract class ModelLockProvider
extends Object
implements com.dassault_systemes.modeler.foundation.util.ModelLockProvider
The class implementation provides a bridge between model's implementation and the application.
Model will use single instance of the class in order to get a lock and the locking configuration by an object.
Application will be able to provide a lock and the locking configuration via configuring single instance.
- Version:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelLockProvider
Returns configured instance ofModelLockProvider
.static void
setInstance
(ModelLockProvider instance) Configures single instance ofModelLockProvider
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.dassault_systemes.modeler.foundation.util.ModelLockProvider
getLock, getTimeUnit, getTryLockTime
-
Constructor Details
-
ModelLockProvider
public ModelLockProvider()
-
-
Method Details
-
getInstance
Returns configured instance ofModelLockProvider
.- Returns:
- single instance.
-
setInstance
Configures single instance ofModelLockProvider
.- Parameters:
instance
- new instance.
-