Package org.jboss.as.naming
Class WritableServiceBasedNamingStore
- java.lang.Object
-
- org.jboss.as.naming.ServiceBasedNamingStore
-
- org.jboss.as.naming.WritableServiceBasedNamingStore
-
- All Implemented Interfaces:
NamingStore,WritableNamingStore
public class WritableServiceBasedNamingStore extends ServiceBasedNamingStore implements WritableNamingStore
- Author:
- John Bailey, Eduardo Martins, Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description WritableServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase, org.jboss.msc.service.ServiceTarget serviceTarget)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static voidpopOwner()static voidpushOwner(org.jboss.msc.service.ServiceName deploymentUnitServiceName)static voidpushOwner(org.jboss.msc.service.ServiceTarget serviceTarget)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 class org.jboss.as.naming.ServiceBasedNamingStore
add, addNamingListener, buildServiceName, close, getBaseName, getServiceNameBase, getServiceRegistry, list, listBindings, lookup, lookup, remove, removeNamingListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.naming.NamingStore
addNamingListener, close, getBaseName, list, listBindings, lookup, lookup, removeNamingListener
-
-
-
-
Method Detail
-
bind
public void bind(Name name, Object object, Class<?> bindType) throws NamingException
Description copied from interface:WritableNamingStoreBind and object into the naming store, creating parent contexts if needed. All parent contexts must be created before this can be executed.- Specified by:
bindin interfaceWritableNamingStore- Parameters:
name- The entry nameobject- The entry objectbindType- The entry class- Throws:
NamingException- If any problems occur
-
bind
public void bind(Name name, Object object) throws NamingException
Description copied from interface:WritableNamingStoreBind 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.- Specified by:
bindin interfaceWritableNamingStore- Parameters:
name- The entry nameobject- The entry object- Throws:
NamingException- If any problems occur
-
rebind
public void rebind(Name name, Object object) throws NamingException
Description copied from interface:WritableNamingStoreRe-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.- Specified by:
rebindin interfaceWritableNamingStore- Parameters:
name- The entry nameobject- The entry object- Throws:
NamingException- If any problems occur
-
rebind
public void rebind(Name name, Object object, Class<?> bindType) throws NamingException
Description copied from interface:WritableNamingStoreRe-bind and object into the naming store. All parent contexts must be created before this can be executed.- Specified by:
rebindin interfaceWritableNamingStore- Parameters:
name- The entry nameobject- The entry objectbindType- The entry class- Throws:
NamingException- If any problems occur
-
unbind
public void unbind(Name name) throws NamingException
Description copied from interface:WritableNamingStoreUnbind an object from the naming store. An entry for the name must exist.- Specified by:
unbindin interfaceWritableNamingStore- Parameters:
name- The entry name- Throws:
NamingException- If any problems occur
-
createSubcontext
public Context createSubcontext(Name name) throws NamingException
Description copied from interface:WritableNamingStoreCreate a sub-context for the provided name.- Specified by:
createSubcontextin interfaceWritableNamingStore- Parameters:
name- The entry name- Returns:
- The new sub-context
- Throws:
NamingException- If any errors occur
-
pushOwner
public static void pushOwner(org.jboss.msc.service.ServiceName deploymentUnitServiceName)
-
pushOwner
public static void pushOwner(org.jboss.msc.service.ServiceTarget serviceTarget)
-
popOwner
public static void popOwner()
-
-