Class RegularModelDescriptor

    • Field Detail

      • myLoadLock

        protected final Object myLoadLock
        left protected for subclasses that need extended control over loading process (i.e. partial/sequential model loading)
    • Method Detail

      • getSModelInternal

        public final SModel getSModelInternal()
        Description copied from class: SModelDescriptorStub
        Migration to 3.0. Loads and returns model data. FIXME Replace uses of this method with getSModel(), make it abstract and implement in SModelBase subclasses. The name getSModelInternal is misleading as it clashes with SModelInternal interface this class implements. Though getSModel is not much better, at least in the context of SModelDescriptor it makes more sense.
        Specified by:
        getSModelInternal in class SModelDescriptorStub
      • getCurrentModelInternal

        @Nullable
        protected final SModel getCurrentModelInternal()
        Description copied from class: SModelBase
        Likely, shall return SModelData eventually
        Specified by:
        getCurrentModelInternal in class SModelBase
        Returns:
        actual model data or null if not initialized yet
      • replace

        protected void replace​(@NotNull
                               ModelLoadResult<SModel> newModel)
        Handy utility when the new model data is known/obtained beforehand, not through #createModel() factory