Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
Code Block | ||||
---|---|---|---|---|
| ||||
#Client stubs and definitions, such as structs, enums, etc.
import <Module>
#Skeleton infrastructure for server implementation
import <Module>__POA
#Base component implementation
from Acspy.Servants.ACSComponent import ACSComponent
#Services provided by the container to the component
from Acspy.Servants.ContainerServices import ContainerServices
#Basic component lifecycle (initialize, execute, cleanUp and aboutToAbort methods)
from Acspy.Servants.ComponentLifecycle import ComponentLifecycle
#Error definitions for catching exceptions
import ServiceErr
import <Interface>Err
#Error definitions for creating and raising exceptions
import ServiceErrImpl
import <Interface>ErrImpl |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#By Name comp = self.getComponent("<Name>") #By Interface. Must be at least one component configured as default! comp = self.getDefaultComponent("IDL:alma/<Module>/<Interface>:1.0") #Release Components self.releaseComponent(comp.name()) |
For logging, as you saw in the class constructor, there's a facility provided by the component. To use it, simply do as follows:
...