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.
|
Name |
getBaseName()
Retrieves the store's base name, which is the prefix for the absolute name of each entry in 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.
|
Object |
lookup(Name name,
boolean dereference)
Look up an object from the naming store.
|
void |
removeNamingListener(NamingListener listener)
Remove a
NamingListener from all targets and scopes |
Name getBaseName() throws NamingException
NamingExceptionObject lookup(Name name) throws NamingException
name - The entry nameNamingException - If any errors occur.Object lookup(Name name, boolean dereference) throws NamingException
name - The entry namedereference - if true indicates that managed references should retrieve the instance.NamingException - 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 © 2020 JBoss by Red Hat. All rights reserved.