Skip to main content

AbstractMessageServiceProvider

Short summary

An abstract implementaion of the MessageServiceFactory. It is used to contain the static variable to link the messages to a global handler and a machine handler and should be used as a base class for all MessageServiceFactories to ensure proper linkage.

AccessAbstractFinalExtendsImplements
YesNoCNM_AbstractObject.ObjectIMessageServiceProvider

UML Diagram

Parameters

none

Properties

messageService

Type: IMessageService

This property can be used to inject a message service that will handle the event.

Code

Declaration

FUNCTION_BLOCK ABSTRACT AbstractMessageServiceProvider EXTENDS CNM_AbstractObject.Object IMPLEMENTS IMessageServiceProvider
VAR_STAT
ourGlobalMessageService :IMessageService;
END_VAR
VAR
myInjectedMessageService :IMessageService;
END_VAR