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
ConstructorsConstructorDescriptionWritableServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase, org.jboss.msc.service.ServiceTarget serviceTarget) -
Method Summary
Modifier and TypeMethodDescriptionvoidBind and object into the naming store, creating parent contexts if needed.voidBind and object into the naming store, creating parent contexts if needed.createSubcontext(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) voidRe-bind and object into the naming store.voidRe-bind and object into the naming store.voidUnbind 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, removeNamingListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.naming.NamingStore
addNamingListener, close, getBaseName, list, listBindings, lookup, lookup, removeNamingListener
-
Constructor Details
-
WritableServiceBasedNamingStore
public WritableServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase, org.jboss.msc.service.ServiceTarget serviceTarget)
-
-
Method Details
-
bind
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
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
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
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
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
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()
-