|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface that must be implemented by each egg.
The interface contains methods that the JEgg framework uses to
configure the egg before the first application message is delivered
to the egg. The interface also declares the minimum message interface
handle method that the egg must implement in order to participate in
a JEgg-based application. A typical concrete egg implementation will
implement additional handle
methods, one for each distinct
message type that it recognizes. All handle methods take only a single
argument, the message.
A convenience base class, jegg.impl.EggBase, may be used instead of directly implementing the jegg.Egg interface.
Method Summary | |
void |
handle(java.lang.Object message)
The default message handler method. |
void |
init()
Initialize this egg. |
void |
setContext(EggContext myContext)
Set the application context for this egg. |
Method Detail |
public void setContext(EggContext myContext)
myContext
- this eggs application context.public void init() throws UnableToInitializeException
init()
method is invoked.
UnableToInitializeException
- if this egg cannot complete its
initialization.public void handle(java.lang.Object message)
The implementation class should implement additional handler methods, one for each message type that recognizes.
message
- a message sent to this egg.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |