|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jegg.EggBase jegg.impl.PortRegistry
Field Summary | |
static java.lang.String |
SEPARATOR
The name separator used to compose the path name of a registry. |
Method Summary | |
PortRegistry |
createRegistry(java.lang.String name)
Create a child registry of this registry. |
static PortRegistry |
getInstance()
Return the default registry. |
static PortRegistry |
getInstance(java.lang.String name)
Get a named registry. |
Port |
getPort()
Return this egg's message port. |
void |
handle(LocatePortMessage message)
Handle a lookup request from a client egg. |
void |
handle(java.lang.Object message)
The default message handler method. |
void |
handle(PublishPortMessage message)
Handle a request to publish a named port in the registry. |
Methods inherited from class jegg.EggBase |
getContext, init, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SEPARATOR
Method Detail |
public static final PortRegistry getInstance()
public static final PortRegistry getInstance(java.lang.String name)
name
- the name of the context to find or create.
public Port getPort()
EggBase
getPort
in class EggBase
public void handle(java.lang.Object message)
Egg
The implementation class should implement additional handler methods, one for each message type that recognizes.
message
- a message sent to this egg.public void handle(LocatePortMessage message)
message
- the lookup details.public void handle(PublishPortMessage message)
message
- the message containing the details.public final PortRegistry createRegistry(java.lang.String name) throws DuplicatePortException
name
- the name to assign to the child registry
DuplicatePortException
- if the name already exists in
this context.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |