<service> element

Appears in: <application> and <library-specification>

Defines an IEngineService provided by the application or by a library.

The framework provides several services (home, direct, action, external, etc.). Applications may override these services by defining different services with the same names.

Libraries that provide services should use a qualified name (that is, put a package prefix in front of the name) to avoid name collisions.

Figure B.28. <service> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the service.
classstringyes The complete class name to instantiate. The class must have a zero-arguments constructor and implement the interface IEngineService