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.

Constructor Index

 o Registry()

Method Index

 o create(AgletContext)
Create a registry.
 o handleMessage(Message)
Message handler.
 o onCreation(Object)

Constructors

 o Registry
  public Registry()

Methods

 o handleMessage
  public synchronized boolean handleMessage(Message msg)
Message handler.
Overrides:
handleMessage in class Aglet
 o onCreation
  public void onCreation(Object o)
Overrides:
onCreation in class OldAglet
 o 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