|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.rmi.registry.NamingServiceImpl
Vanilla implementation of a naming service component. Persistence is not implemented.
Field Summary |
Fields inherited from interface org.objectweb.fractal.rmi.registry.NamingService |
NAMING_SERVICE |
Constructor Summary | |
NamingServiceImpl()
|
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 |
getPersistenceFileName()
|
boolean |
getPersistenceMode()
|
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. |
void |
setPersistenceFileName(String fileName)
|
void |
setPersistenceMode(boolean on)
|
Component |
unbind(String name)
Removes a name from the naming service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamingServiceImpl()
Method Detail |
public String[] list()
NamingService
list
in interface NamingService
public Component lookup(String name)
NamingService
lookup
in interface NamingService
name
- the name to look for.
public boolean bind(String name, Component comp)
NamingService
bind
in interface NamingService
name
- name to be associated to the component.comp
- component to be associated to the given name.
public Component rebind(String name, Component comp)
NamingService
rebind
in interface NamingService
name
- name to be associated to the component.comp
- component to be associated to the given name.
public Component unbind(String name)
NamingService
unbind
in interface NamingService
name
- to remove.
public boolean getPersistenceMode()
getPersistenceMode
in interface NamingServiceAttributes
public void setPersistenceMode(boolean on)
setPersistenceMode
in interface NamingServiceAttributes
public String getPersistenceFileName()
getPersistenceFileName
in interface NamingServiceAttributes
public void setPersistenceFileName(String fileName)
setPersistenceFileName
in interface NamingServiceAttributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |