InterSystems IRIS Data Platform 2019.2  /  InterSystems Programming Tools Index

InterSystems Programming Tools Index
Previous section           Next section
InterSystems: The power behind what matters   

Work with packages programmatically (compile, export, delete, and so on); configure mappings.
Background Information
A package is the initial part of a full class name. Packages group related classes so that you can more easily avoid name conflicts; there are other benefits as well. For more information, see “Packages” in Defining and Using Classes.
You can define package mappings so that you can access code in a non-default location; see “Configuring Namespaces” in the chapter “Configuring InterSystems IRIS” in the System Administration Guide. Typically you do this within the Management Portal.
Available Tools
Provides the following methods that you can use with packages:
Availability: All namespaces.
%Studio.Package class
Represents the package information used by the class compiler. This class provides the following methods:
Availability: All namespaces.
Config.MapPackages class
Enables you to modify and obtain information about the [] section of the CPF file, which defines package mappings. (Note that you usually perform this configuration via the Management Portal, as noted above.)
The class also provides the List() and ListPackages() class queries.
The class documentation includes examples and details.
Availability: %SYS namespace.
%Installer.Manifest class and other classes in the %Installer package
Enable you to define and use an installation manifest. Among other tasks, you can configure package mappings.
Availability: All namespaces.
The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-20 05:45:45