|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.registry.NamingServiceImpl
public class 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(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 |
getPersistenceFileName()
|
boolean |
getPersistenceMode()
|
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. |
void |
setPersistenceFileName(java.lang.String fileName)
|
void |
setPersistenceMode(boolean on)
|
org.objectweb.fractal.api.Component |
unbind(java.lang.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 java.lang.String[] list()
NamingService
list in interface NamingServicepublic org.objectweb.fractal.api.Component lookup(java.lang.String name)
NamingService
lookup in interface NamingServicename - the name to look for.
public boolean bind(java.lang.String name,
org.objectweb.fractal.api.Component comp)
NamingService
bind in interface NamingServicename - name to be associated to the component.comp - component to be associated to the given name.
public org.objectweb.fractal.api.Component rebind(java.lang.String name,
org.objectweb.fractal.api.Component comp)
NamingService
rebind in interface NamingServicename - name to be associated to the component.comp - component to be associated to the given name.
public org.objectweb.fractal.api.Component unbind(java.lang.String name)
NamingService
unbind in interface NamingServicename - to remove.
public boolean getPersistenceMode()
getPersistenceMode in interface NamingServiceAttributespublic void setPersistenceMode(boolean on)
setPersistenceMode in interface NamingServiceAttributespublic java.lang.String getPersistenceFileName()
getPersistenceFileName in interface NamingServiceAttributespublic void setPersistenceFileName(java.lang.String fileName)
setPersistenceFileName in interface NamingServiceAttributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||