Home > Class Reference > ENSLIB namespace > Ens.BusinessServiceHost

Ens.BusinessServiceHost

class Ens.BusinessServiceHost extends %Library.RegisteredObject

Provides a concrete class that can be used to pass messages to a service in a production. This class can also be used via standard Cache' projections.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property Service as Ens.BusinessService [ InitialExpression = $$$NULLOREF ];
Property methods: ServiceGet(), ServiceGetSwizzled(), ServiceIsValid(), ServiceNewObject(), ServiceSet()

Methods (Including Private)

private method %OnClose() as %Status
Inherited description: This callback method is invoked by the %Close() method to provide notification that the current object is being closed.

The return value of this method is ignored.

private method %OnNew(pTargetService As %CacheString) as %Status
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.

method SubmitRequest(pRequest As Ens.Request, ByRef pResponse As Ens.Response) as %Status
Allows a request to be submitted for processing.

Inherited Members

Inherited Methods (Including Private)