Package com._1c.g5.v8.dt.supply
Class SupplySettingsContext
- java.lang.Object
-
- com._1c.g5.v8.dt.supply.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, theISupplySettingsManager
prepares the supply (or supply + integration) data model(s) and holds references to them. During the stop of the context, theISupplySettingsManager
ensures that all data associated with the supply settings model are unloaded properly.
-
-
Constructor Summary
Constructors Constructor Description SupplySettingsContext(IDtProject project)
Creates the supply settings context using provided project.SupplySettingsContext(Path sourcePath)
Creates the supply settings context using provided source path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
IDtProject
getProject()
Gets the project being associated with the contextPath
getSourcePath()
Gets the source path being associated with the contextint
hashCode()
-
-
-
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 benull
-
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 benull
-
-
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
-
-