osrf-devel:perl-server-dev
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| osrf-devel:perl-server-dev [2007/03/20 00:29] – miker | osrf-devel:perl-server-dev [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[user-comments: | ||
| + | |||
| + | |||
| + | ==== OpenSRF Application development Perl API ==== | ||
| + | |||
| + | OpenSRF offers a very simple Application development API to users of the framework. | ||
| + | |||
| + | Each method executes in the OpenSRF:: | ||
| + | |||
| + | <code perl> | ||
| + | $self-> | ||
| + | |||
| + | $self-> | ||
| + | # method | ||
| + | |||
| + | my $meth = $self-> | ||
| + | # constructs a new instance object implementing another | ||
| + | # method in the same Application package as a subrequest | ||
| + | | ||
| + | my ($subresult) = $meth-> | ||
| + | # runs the subrequest method and returns the array of | ||
| + | # results | ||
| + | </ | ||
| + | |||
| + | All that is required to register an Application with OpenSRF is to place a setting in the configuration file that names the module that implements the new Application, | ||
| + | |||
| + | See [[example-server|here]] for a simple example server. | ||