public interface NamingStore
NamingContext
instances
to manage naming entries.Modifier and Type | Method and Description |
---|---|
void |
addNamingListener(Name target,
int scope,
NamingListener listener)
Add a
NamingListener for a specific target and scope. |
void |
close()
Close the naming store and cleanup any resource used by the store.
|
List<NameClassPair> |
list(Name name)
List the NameClassPair instances for the provided name.
|
List<Binding> |
listBindings(Name name)
List the binding objects for a specified name.
|
Object |
lookup(Name name)
Look up an object from the naming store.
|
void |
removeNamingListener(NamingListener listener)
Remove a
NamingListener from all targets and scopes |
Object lookup(Name name) throws NamingException
name
- The entry nameNamingException
- If any errors occur.List<NameClassPair> list(Name name) throws NamingException
name
- The entry nameNamingException
- If any errors occurList<Binding> listBindings(Name name) throws NamingException
name
- The entry nameNamingException
- If any errors occurvoid close() throws NamingException
NamingException
- If any errors occurvoid addNamingListener(Name target, int scope, NamingListener listener)
NamingListener
for a specific target and scope.target
- The target name to add the listener toscope
- The listener scopelistener
- The listenervoid removeNamingListener(NamingListener listener)
NamingListener
from all targets and scopeslistener
- The listenerCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.