Home > Class Reference > %SYS namespace > %ZHSLIB.Context.Manager


class %ZHSLIB.Context.Manager extends %Library.RegisteredObject

Property Inventory (Including Private)

Method Inventory (Including Private)


parameter ContextNode = ^|"HSLIB"|HSContext;
parameter HealthShareContextClass = %SYSTEM.Context.HealthShare.Manager;
parameter HealthShareContextPropName = HSContext;

Properties (Including Private)

property InitializedNamespaces [ Private , MultiDimensional ];
Array of namespace names for which services have been initialized
Property methods: InitializedNamespacesDisplayToLogical(), InitializedNamespacesGet(), InitializedNamespacesIsValid(), InitializedNamespacesLogicalToDisplay(), InitializedNamespacesLogicalToOdbc(), InitializedNamespacesNormalize(), InitializedNamespacesSet()
property Services [ Private , MultiDimensional ];
Services available for this process, subscripted by service name and version (and, optionally, namespace)
Property methods: ServicesDisplayToLogical(), ServicesGet(), ServicesIsValid(), ServicesLogicalToDisplay(), ServicesLogicalToOdbc(), ServicesNormalize(), ServicesSet()
property UpdateIndex as %Integer [ Private , InitialExpression = 0 ];
Time at which this instance had the latest version of services available
Property methods: UpdateIndexDisplayToLogical(), UpdateIndexGet(), UpdateIndexIsValid(), UpdateIndexLogicalToDisplay(), UpdateIndexNormalize(), UpdateIndexSet()

Methods (Including Private)

final method %OnNew() as %Status [ Language = objectscript ]
Starts all services defined in the current namespace
classmethod BootstrapMappings(pMapFromDatabase As %String = "HSLIB") [ Language = objectscript ]
Create package mappings for %SYSTEM.Context.HealthShare.* in %ALL
private classmethod BuildInstanceKey(pServiceKey As %String, pInstanceName As %String) as %String [ Language = objectscript ]
private method CheckForService(pCompositeServiceKey As %String, pMajorVersion As %Integer, pMinimumMinorVersion As %Integer) as %ZHSLIB.Context.ServiceBase [ Language = objectscript ]
Internal helper method for GetService(). Returns a service matching the provided parameters if found. If not, returns null oref.
private method GetInitializedNamespaces(Output pInitializedNamespaces) [ Language = objectscript ]
method GetService(pServiceKey As %String, pMajorVersion As %Integer, pInstanceName As %String = "", pMinimumMinorVersion As %Integer = 0) as %ZHSLIB.Context.ServiceBase [ Language = objectscript ]
Returns a per-process service instance matching the following parameters:
  • Service key = composite key built from pServiceKey and pInstanceName
  • Service major version = pMajorVersion
  • Service minor version >= pMinimumMinorVersion
  • Service patch version = latest available
Throws an error if no service matching the above conditions is found.
private method GetServices(Output pServices) [ Language = objectscript ]
private method GetUpdateIndex() as %Integer [ Language = objectscript ]
private method Initialize() [ Language = objectscript ]
Initializes services for the current namespace
classmethod Instance() as %ZHSLIB.Context.Manager [ Language = objectscript ]
Returns the per-process instance of this class
method RegisterNamedInstance(pServiceInstance As %ZHSLIB.Context.ServiceBase, pInstanceName As %String, pNamespace As %String = $Namespace) [ Language = objectscript ]
method RegisterService(pServiceInstance As %ZHSLIB.Context.ServiceBase, pNamespace As %String = "") [ Language = objectscript ]
Adds a service to the Service property using the ServiceKey and ServiceVersion in pServiceInstance. May be namespace-specific (if pNamespace is specified), or instance-wide (if not).
private method SetInitializedNamespaces(ByRef pInitializedNamespaces) [ Language = objectscript ]
private method SetServices(ByRef pServices) [ Language = objectscript ]
private method SetUpdateIndex(pUpdateIndex As %Integer) [ Language = objectscript ]

Inherited Members

Inherited Methods (Including Private)