Class 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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ModelLockProvider getInstance()
      Returns configured instance of ModelLockProvider.
      static void setInstance​(ModelLockProvider instance)
      Configures single instance of ModelLockProvider.
      • 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 Detail

      • ModelLockProvider

        public ModelLockProvider()
    • Method Detail

      • 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.