Package org.jboss.as.naming
Interface NamingStore
- All Known Subinterfaces:
WritableNamingStore
- All Known Implementing Classes:
InMemoryNamingStore,ServiceBasedNamingStore,WritableServiceBasedNamingStore
public interface NamingStore
Interface to layout a contract for naming entry back-end storage. This will be used by
NamingContext instances
to manage naming entries.- Author:
- John E. Bailey, Eduardo Martins
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNamingListener(Name target, int scope, NamingListener listener) Add aNamingListenerfor a specific target and scope.voidclose()Close the naming store and cleanup any resource used by the store.Retrieves the store's base name, which is the prefix for the absolute name of each entry in the store.List the NameClassPair instances for the provided name.listBindings(Name name) List the binding objects for a specified name.Look up an object from the naming store.Look up an object from the naming store.voidremoveNamingListener(NamingListener listener) Remove aNamingListenerfrom all targets and scopes
-
Method Details
-
getBaseName
Retrieves the store's base name, which is the prefix for the absolute name of each entry in the store.- Returns:
- Throws:
NamingException
-
lookup
Look up an object from the naming store. An entry for this name must already exist.- Parameters:
name- The entry name- Returns:
- The object from the store.
- Throws:
NamingException- If any errors occur.
-
lookup
Look up an object from the naming store. An entry for this name must already exist.- Parameters:
name- The entry namedereference- if true indicates that managed references should retrieve the instance.- Returns:
- The object from the store.
- Throws:
NamingException- If any errors occur.
-
list
List the NameClassPair instances for the provided name. An entry for this name must already exist and be bound to a valid context.- Parameters:
name- The entry name- Returns:
- The NameClassPair instances
- Throws:
NamingException- If any errors occur
-
listBindings
List the binding objects for a specified name. An entry for this name must already exist and be bound to a valid context.- Parameters:
name- The entry name- Returns:
- The bindings
- Throws:
NamingException- If any errors occur
-
close
Close the naming store and cleanup any resource used by the store.- Throws:
NamingException- If any errors occur
-
addNamingListener
Add aNamingListenerfor a specific target and scope.- Parameters:
target- The target name to add the listener toscope- The listener scopelistener- The listener
-
removeNamingListener
Remove aNamingListenerfrom all targets and scopes- Parameters:
listener- The listener
-