|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.communication.jndi.agent.util.RegistryUtil
public class RegistryUtil
Utility class to handle data.
| Constructor Summary | |
|---|---|
RegistryUtil(AbstractJNDIAgentServiceImpl jndiAgentServiceImpl)
Creates a new instance of RegistryUtil |
|
| Method Summary | |
|---|---|
void |
bind(java.lang.Object contextName,
java.lang.Object key,
java.lang.Object value)
Bind an object with a key in the specified context |
java.lang.String |
createSubcontext(java.lang.Object contextName,
java.lang.Object key)
Create and bind a new context in the specified context |
void |
destroySubcontext(java.lang.Object contextName,
java.lang.Object key)
Destroy a subcontext in the specified context |
javax.naming.NameClassPair[] |
list(java.lang.Object contextName,
java.lang.Object key)
List the content of a context |
javax.naming.Binding[] |
listBindings(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
List the bindings of a context |
java.io.Serializable |
lookup(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
Lookup for an object |
java.lang.Object |
lookupLink(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
Lookup for an object go through the links if the object found is a link |
void |
rebind(java.lang.Object contextName,
java.lang.Object key,
java.lang.Object value)
Rebind an object with a key in the specified context |
void |
rename(java.lang.Object contextName,
java.lang.Object oldKey,
java.lang.Object newKey,
boolean localConnection)
Rename an object with a key in the specified context |
void |
unbind(java.lang.Object contextName,
java.lang.Object key)
Unbind an object from a Context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryUtil(AbstractJNDIAgentServiceImpl jndiAgentServiceImpl)
RegistryUtil
server - | Method Detail |
|---|
public void bind(java.lang.Object contextName,
java.lang.Object key,
java.lang.Object value)
throws javax.naming.NamingException
contextName - name of the contextkey - key to bind withvalue - value to bind to the key
javax.naming.NamingException - if a problem occurs
public java.lang.String createSubcontext(java.lang.Object contextName,
java.lang.Object key)
throws javax.naming.NamingException
contextName - name of the context in which we want to create a new contextkey - name of the context that we want to create
javax.naming.NamingException - if the context name does not exist or if the key is already
bound
public void destroySubcontext(java.lang.Object contextName,
java.lang.Object key)
throws javax.naming.NamingException
contextName - name of the context in which we want to create a new contextkey - name of the context that we want to create
javax.naming.NamingException - if the context name does not exist or if the key is already
bound
public javax.naming.NameClassPair[] list(java.lang.Object contextName,
java.lang.Object key)
throws javax.naming.NamingException
contextName - name of the contextcontextToList - name of the context to list the content
javax.naming.NamingException
public javax.naming.Binding[] listBindings(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
throws javax.naming.NamingException
contextName - name of the contextcontextToList - name of the context to list the contentlocalConnection - true if the connection is local
javax.naming.NamingException
public java.io.Serializable lookup(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
throws javax.naming.NamingException
contextName - name of the contextkey - key to look forlocalConnection - true if the connection is local
javax.naming.NamingException
public java.lang.Object lookupLink(java.lang.Object contextName,
java.lang.Object key,
boolean localConnection)
throws javax.naming.NamingException
contextName - name of the contextkey - key to look forlocalConnection - true if the connection is local
javax.naming.NamingException
public void rebind(java.lang.Object contextName,
java.lang.Object key,
java.lang.Object value)
throws javax.naming.NamingException
data - datacontextName - name of the contextkey - key to bind withvalue - value to bind to the key
javax.naming.NamingException - if a problem occurs
public void rename(java.lang.Object contextName,
java.lang.Object oldKey,
java.lang.Object newKey,
boolean localConnection)
throws javax.naming.NamingException
contextName - name of the contextoldKey - old keynewKey - new key to bind tolocalConnection - true if the connection is local
javax.naming.NamingException - if a problem occurs
public void unbind(java.lang.Object contextName,
java.lang.Object key)
throws javax.naming.NamingException
contextName - name of the context in which we workkey - key to unbind
javax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||