Skip navigation links

Package net.sf.eBus.messages

Messages are the heart of eBus.

See: Description

Package net.sf.eBus.messages Description

Messages are the heart of eBus. The net.sf.eBus.client API is about sending and receiving messages. This package defines the eBus classes used to implement messages. This includes the abstract EMessageObject, EMessageHeader, EMessage, and EField classes combined with the EReplyInfo annotation used to define messages allowed to reply to a request message.. EMessage is the abstract base class for all actual messages. eBus messages are defined by:
  1. extending ENotifyMessage, ERequestMessage, or EReplyMessage
  2. defining the message fields as public final data members,
  3. supplying the required builder inner class.
The data member types are limited to Java primitives or the equivalent classes (boolean/Boolean, char Character, int/Integer, etc.), supported Java classes (String, Date, BigDecimal, etc.) or a class which extends the EField class.

All user-defined message and EField subclasses must provide a builder inner class. This builder is used to re-create the message from its serialized format. See EMessageObject for detailed examples explaining this "de-serialization" builder.

User-defined fields are classes which extend EField class. Fields have the same requirements as an eBus message: public final fields with an eBus-supported data type, and a public static de-serialization inner class.

Skip navigation links

Copyright © 2019. All rights reserved.