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 Details

    • ModelLockProvider

      public ModelLockProvider()
  • Method Details

    • getInstance

      public static ModelLockProvider getInstance()
      Returns configured instance of ModelLockProvider.
      Returns:
      single instance.
    • setInstance

      public static void setInstance(ModelLockProvider instance)
      Configures single instance of ModelLockProvider.
      Parameters:
      instance - new instance.