|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Typical naming service interface, inspired from Java RMI Registry's interface. Note: be careful with term "bind", which is not used here as Fractal's concept about linking interfaces, but as the basic naming service concept of associating a name with a server reference.
| Field Summary | |
|---|---|
static String |
NAMING_SERVICE
Interface name for naming service. |
| Method Summary | |
|---|---|
boolean |
bind(String name,
Component comp)
Associates the given name with the given component, if and only if the given name is not already in use in the naming service. |
String[] |
list()
Gets the list of names currently present in the naming service. |
Component |
lookup(String name)
Looks for a component. |
Component |
rebind(String name,
Component comp)
Associates the given name with the given component, replacing any existing association using the same name. |
Component |
unbind(String name)
Removes a name from the naming service. |
| Field Detail |
public static final String NAMING_SERVICE
| Method Detail |
public String[] list()
public Component lookup(String name)
name - the name to look for.
public boolean bind(String name,
Component comp)
name - name to be associated to the component.comp - component to be associated to the given name.
public Component rebind(String name,
Component comp)
name - name to be associated to the component.comp - component to be associated to the given name.
public Component unbind(String name)
name - to remove.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||