Package org.jboss.as.naming
Interface WritableNamingStore
-
- All Superinterfaces:
NamingStore
- All Known Implementing Classes:
InMemoryNamingStore,WritableServiceBasedNamingStore
public interface WritableNamingStore extends NamingStore
ANamingStorethat allows entries to be written as well as retrieved.- Author:
- John Bailey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(Name name, Object object)Bind and object into the naming store, creating parent contexts if needed.voidbind(Name name, Object object, Class<?> bindType)Bind and object into the naming store, creating parent contexts if needed.ContextcreateSubcontext(Name name)Create a sub-context for the provided name.voidrebind(Name name, Object object)Re-bind and object into the naming store.voidrebind(Name name, Object object, Class<?> bindType)Re-bind and object into the naming store.voidunbind(Name name)Unbind an object from the naming store.-
Methods inherited from interface org.jboss.as.naming.NamingStore
addNamingListener, close, getBaseName, list, listBindings, lookup, lookup, removeNamingListener
-
-
-
-
Method Detail
-
bind
void bind(Name name, Object object) throws NamingException
Bind and object into the naming store, creating parent contexts if needed. All parent contexts must be created before this can be executed. The bind object type will be determined by the class of the object being passed in.- Parameters:
name- The entry nameobject- The entry object- Throws:
NamingException- If any problems occur
-
bind
void bind(Name name, Object object, Class<?> bindType) throws NamingException
Bind and object into the naming store, creating parent contexts if needed. All parent contexts must be created before this can be executed.- Parameters:
name- The entry nameobject- The entry objectbindType- The entry class- Throws:
NamingException- If any problems occur
-
rebind
void rebind(Name name, Object object) throws NamingException
Re-bind and object into the naming store. All parent contexts must be created before this can be executed. The bind object type will be determined by the class of the object being passed in.- Parameters:
name- The entry nameobject- The entry object- Throws:
NamingException- If any problems occur
-
rebind
void rebind(Name name, Object object, Class<?> bindType) throws NamingException
Re-bind and object into the naming store. All parent contexts must be created before this can be executed.- Parameters:
name- The entry nameobject- The entry objectbindType- The entry class- Throws:
NamingException- If any problems occur
-
unbind
void unbind(Name name) throws NamingException
Unbind an object from the naming store. An entry for the name must exist.- Parameters:
name- The entry name- Throws:
NamingException- If any problems occur
-
createSubcontext
Context createSubcontext(Name name) throws NamingException
Create a sub-context for the provided name.- Parameters:
name- The entry name- Returns:
- The new sub-context
- Throws:
NamingException- If any errors occur
-
-