org.elkoserver.foundation.json
Interface DispatchTarget

All Known Implementing Classes:
AdminObject, BankClient, BankWorker, BasicObject, BasicProtocolHandler, Cap, Cartesian, Census, Chat, Context, ContextKeyCap, Definer, DeviceUserMod, Dictionary, Image, InternalActor, Invisible, Item, Mod, NonRoutingActor, Note, NoteMaker, PrivateChat, RoutingActor, ServiceActor, TalkOptions, TalkPrefs, User, WorkerObject, WorkshopActor

public interface DispatchTarget

Marker interface for objects that can be the recipients of JSON messages. This interface has no method protocol. Instead, classes "implementing" this interface must mark individual message handler methods using the JSONMethod attribute. These are invoked (by means of the Java reflection API) by the JSON message handler dispatch mechanism.

Classes you write that handle JSON messages won't generally need to declare themselves as implementing this interface, since the normal coding pattern for such things is to subclass a standard base class (such as BasicObject, Mod, BasicProtocolHandler, or NonRoutingActor) that already implements it.