Class SupplySettingsContext

  • All Implemented Interfaces:
    ILifecycleContext

    public class SupplySettingsContext
    extends Object
    implements ILifecycleContext
    Context of the supply settings model. The context is associated with the supply (supply + integration) setting models and used to control the loading/unloading of this model during DT operations. During the start of the context, the ISupplySettingsManager prepares the supply (or supply + integration) data model(s) and holds references to them. During the stop of the context, the ISupplySettingsManager ensures that all data associated with the supply settings model are unloaded properly.
    • Constructor Detail

      • SupplySettingsContext

        public SupplySettingsContext​(IDtProject project)
        Creates the supply settings context using provided project. This constructor could be used only for live EDT project.
        Parameters:
        project - The project to create supply settings for. Cannot be null
      • SupplySettingsContext

        public SupplySettingsContext​(Path sourcePath)
        Creates the supply settings context using provided source path. This constructor could be used only for file sources.
        Parameters:
        sourcePath - The source path to create supply settings for. Cannot be null
    • Method Detail

      • getProject

        public IDtProject getProject()
        Gets the project being associated with the context
        Returns:
        Project being associated with the conext. Could be null for non-project type of supply context
      • getSourcePath

        public Path getSourcePath()
        Gets the source path being associated with the context
        Returns:
        Source path being associated with the conext. Could be null for non-source type of supply context
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object