|
The entry could vary, depending on whether it is part of
path declaration/definition, or being used to capture the processing for an
event source.
Path association:
There are schemes that would associate a handler class with
a path. For such schemes this field would be used to capture the path.
Example: /createInvoice.
The actual path specification could vary with platform or
with specific configuration, when such configurations are permitted.
NOTE When referencing the path definition, in the rest of
specification, it is the event id attribute that should be used and not the
path. Example of such reference could be found in the navigation-path
descriptor. The id is used instead of the path that could be long and could
contain slashes.
Event Source to Handler Mapping:
Although, the descriptor allows the association of paths
with handler, its primary usage involves the capture of event sources, and the
handling of the events that they invoke. For this, the entry here is the
handler object, and the method within it that would be invoked. The method
could be optional, if there were a default.
The entry would be as shown below.
{object-id.callMethod}
The object being any object that is declared with the
behavior of the define type.
When path association is used, the event id of the path
association definition or declaration would be used instead of the object-id.
This is necessary because with this scheme, there is no runtime id provided for
the handler object, it is reachable through the provided path definition.
Thus this specification reduces to the following:
{<action path identity>.callMethod}
Depending on the path association scheme, which is
configurable on some platform, associated method might be defined along with
the handler-class. There also could be a default method. In these cases, it
might suffice to specify the <event id of path decl.> without any method.
Direct: there are cases where the action would forward
directly to a page, without any method invocation. In such cases, the call-type
attribute, described below, would be designated as "direct". This attribute would
be left blank, and the path recorded against the event-id, in the
navigation-path descriptor.
|