Files
narya/lib/sender.tmpl
T
Michael Bayne e54a4d41f4 The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style.
Could this be my biggest checkin ever?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-14 19:08:01 +00:00

32 lines
803 B
Cheetah

//
// $Id: sender.tmpl,v 1.2 2002/08/14 19:07:48 mdb Exp $
package [% package %];
[% FOREACH import = imports -%]
import [% import %];
[% END -%]
/**
* Used to issue notifications to a {@link [% name %]Receiver} instance on a
* client.
*/
public class [% name %]Sender extends InvocationSender
{
[% FOREACH m = methods -%]
/**
* Issues a notification that will result in a call to {@link
* [% name %]Receiver#[% m.mname %]} on a client.
*/
public static void [% m.sname %] (
ClientObject target[% IF m.arglist %], [% END %][% m.arglist %])
{
sendNotification(
target, [% name %]Decoder.RECEIVER_CODE, [% name %]Decoder.[% m.mcode %],
new Object[] { [% m.wrapped_args %] });
}
[% END -%]
// Generated on [% genstamp %].
}