%ZHSLIB.PackageManager.Developer.Lifecycle.Abstract

abstract class %ZHSLIB.PackageManager.Developer.Lifecycle.Abstract extends %Library.RegisteredObject

@API.Extensible

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter PHASES;
$ListBuild list of phases in this lifecycle.
For each phase name, an instance method named "%" must be defined in the class with a return type of %Status.

Properties

property Module as %ZHSLIB.PackageManager.Developer.Module [ Private ];
Property methods: ModuleGet(), ModuleGetObject(), ModuleGetObjectId(), ModuleGetSwizzled(), ModuleIsValid(), ModuleNewObject(), ModuleSet(), ModuleSetObject(), ModuleSetObjectId(), ModuleUnSwizzle()
property PhaseList as %List;
Property methods: PhaseListGet(), PhaseListIsValid(), PhaseListLogicalToOdbc(), PhaseListOdbcToLogical(), PhaseListSet()

Methods

method %DispatchMethod(pMethod As %String, ByRef pParams, Args...) [ Language = objectscript ]
Inherited description: Is used to implement an unknown method call. It is also used to resolve an unknown multidimensional property reference (to get the value of a property) because that syntax is identical to a method call.
private method %OnNew(pModule As %ZHSLIB.PackageManager.Developer.Module) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

classmethod GetCompletePhases(pOnePhase As %List) as %List [ Language = objectscript ]
This method defines what a complete phase means for a given list of phases
classmethod GetDefaultParameters(ByRef pParams, pPhases As %List) [ Language = objectscript ]
Merges default parameters into pParams For now, just looks at ^SYS("PackageManager","DefaultParameters")
classmethod GetDefaultResourceProcessor(pResourceName As %String) as %Dictionary.Classname [ Language = objectscript ]
Returns the default resource processor class to use for a given resource name.
classmethod GetDefaultResourceProcessorProc(pLifecycleClass As %Dictionary.Classname, pResourceName As %String) as %String [ Language = objectscript, SQLProc = GET_DEFAULT_RESOURCE_PROCESSOR ]
method OnAfterPhase(pPhase As %String, ByRef pParams) as %Status [ Language = objectscript ]
method OnAfterResourceProcessing(pPhase As %String, ByRef pParams) as %Status [ Language = objectscript ]
This method can be overrided to include any action that needs to be executed after the process of module's lifecycle, and also after notifying resource processors
method OnBeforePhase(pPhase As %String, ByRef pParams) as %Status [ Language = objectscript ]
method OnBeforeResourceProcessing(pPhase As %String, ByRef pParams) as %Status [ Language = objectscript ]
This method can be overrided to include any action that needs to be executed before the process of module's lifecycle, and also before notifying resource processors

Inherited Members

Inherited Methods (Including Private)

Feedback