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 java.lang.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
Constructors Constructor Description ModelLockProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelLockProvider
getInstance()
Returns configured instance ofModelLockProvider
.static void
setInstance(ModelLockProvider instance)
Configures single instance ofModelLockProvider
.
-
-
-
Method Detail
-
getInstance
public static ModelLockProvider getInstance()
Returns configured instance ofModelLockProvider
.- Returns:
- single instance.
-
setInstance
public static void setInstance(ModelLockProvider instance)
Configures single instance ofModelLockProvider
.- Parameters:
instance
- new instance.
-
-