|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NamingService
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 java.lang.String |
NAMING_SERVICE
Interface name for naming service. |
| Method Summary | |
|---|---|
boolean |
bind(java.lang.String name,
org.objectweb.fractal.api.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. |
java.lang.String[] |
list()
Gets the list of names currently present in the naming service. |
org.objectweb.fractal.api.Component |
lookup(java.lang.String name)
Looks for a component. |
org.objectweb.fractal.api.Component |
rebind(java.lang.String name,
org.objectweb.fractal.api.Component comp)
Associates the given name with the given component, replacing any existing association using the same name. |
org.objectweb.fractal.api.Component |
unbind(java.lang.String name)
Removes a name from the naming service. |
| Field Detail |
|---|
static final java.lang.String NAMING_SERVICE
| Method Detail |
|---|
java.lang.String[] list()
org.objectweb.fractal.api.Component lookup(java.lang.String name)
name - the name to look for.
boolean bind(java.lang.String name,
org.objectweb.fractal.api.Component comp)
name - name to be associated to the component.comp - component to be associated to the given name.
org.objectweb.fractal.api.Component rebind(java.lang.String name,
org.objectweb.fractal.api.Component comp)
name - name to be associated to the component.comp - component to be associated to the given name.
org.objectweb.fractal.api.Component unbind(java.lang.String name)
name - to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||