Class ibm.aglets.patterns.Registry
All Packages Class Hierarchy This Package Previous Next Index
Class ibm.aglets.patterns.Registry
java.lang.Object
|
+----aglet.Aglet
|
+----aglet.a4compatibility.OldAglet
|
+----ibm.aglets.patterns.Registry
- public final class Registry
- extends OldAglet
The Registry aglet enables to register and locate aglets via symbolic
names. The following messages are supported:
WHERE(name) : return the URL of a specific aglet. If does not exist,
return null.
REMOVE(name) : remove the entry for a specific aglet (if exists).
WHEREALL(string) : return an Hashtable of all registrated aglets whose names matched with a specific string.
REGISTER(aglet URL,name) : add a new aglet.
-
Registry()
-
-
create(AgletContext)
- Create a registry.
-
handleMessage(Message)
- Message handler.
-
onCreation(Object)
-
Registry
public Registry()
handleMessage
public synchronized boolean handleMessage(Message msg)
- Message handler.
- Overrides:
- handleMessage in class Aglet
onCreation
public void onCreation(Object o)
- Overrides:
- onCreation in class OldAglet
create
public static URL create(AgletContext ctx) throws IOException, AgletException
- Create a registry.
- Parameters:
- ctx - the aglet context
- Returns:
- the URL of the registry
- Throws: IOException
- AgletException if fails.
All Packages Class Hierarchy This Package Previous Next Index