From: miker Date: Mon, 14 Feb 2005 20:34:32 +0000 (+0000) Subject: added server_class to the method struct, this will let us provide transparent remote... X-Git-Tag: osrf_rel_2_0_1~1822 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3b9cd54757913637da211326dc111918e605c715;p=OpenSRF.git added server_class to the method struct, this will let us provide transparent remote subrequests git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@50 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/Application.pm b/src/perlmods/OpenSRF/Application.pm index d277d20..a2da705 100644 --- a/src/perlmods/OpenSRF/Application.pm +++ b/src/perlmods/OpenSRF/Application.pm @@ -203,6 +203,7 @@ sub register_method { $args{stream} ||= 0; $args{package} ||= $app; $args{api_name} ||= UnixServer->app() . '.' . $args{method}; + $args{server_class} ||= UnixServer->app(); $args{code} ||= \&{$app . '::' . $args{method}}; $_METHODS[$args{api_level}]{$args{api_name}} = bless \%args => $app;