Package org.jboss.as.naming
Class ServiceBasedNamingStore
java.lang.Object
org.jboss.as.naming.ServiceBasedNamingStore
- All Implemented Interfaces:
NamingStore
- Direct Known Subclasses:
WritableServiceBasedNamingStore
- Author:
- John Bailey, Jason T. Greene, Eduardo Martins
-
Constructor Summary
ConstructorsConstructorDescriptionServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.jboss.msc.service.ServiceName serviceName) voidaddNamingListener(Name target, int scope, NamingListener listener) Add aNamingListenerfor a specific target and scope.protected org.jboss.msc.service.ServiceNamebuildServiceName(Name name) 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.protected org.jboss.msc.service.ServiceNameprotected org.jboss.msc.service.ServiceRegistryList 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.voidremove(org.jboss.msc.service.ServiceName serviceName) voidremoveNamingListener(NamingListener listener) Remove aNamingListenerfrom all targets and scopes
-
Constructor Details
-
ServiceBasedNamingStore
public ServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase)
-
-
Method Details
-
lookup
Description copied from interface:NamingStoreLook up an object from the naming store. An entry for this name must already exist.- Specified by:
lookupin interfaceNamingStore- Parameters:
name- The entry name- Returns:
- The object from the store.
- Throws:
NamingException- If any errors occur.
-
lookup
Description copied from interface:NamingStoreLook up an object from the naming store. An entry for this name must already exist.- Specified by:
lookupin interfaceNamingStore- 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
Description copied from interface:NamingStoreList the NameClassPair instances for the provided name. An entry for this name must already exist and be bound to a valid context.- Specified by:
listin interfaceNamingStore- Parameters:
name- The entry name- Returns:
- The NameClassPair instances
- Throws:
NamingException- If any errors occur
-
listBindings
Description copied from interface:NamingStoreList the binding objects for a specified name. An entry for this name must already exist and be bound to a valid context.- Specified by:
listBindingsin interfaceNamingStore- Parameters:
name- The entry name- Returns:
- The bindings
- Throws:
NamingException- If any errors occur
-
close
Description copied from interface:NamingStoreClose the naming store and cleanup any resource used by the store.- Specified by:
closein interfaceNamingStore- Throws:
NamingException- If any errors occur
-
addNamingListener
Description copied from interface:NamingStoreAdd aNamingListenerfor a specific target and scope.- Specified by:
addNamingListenerin interfaceNamingStore- Parameters:
target- The target name to add the listener toscope- The listener scopelistener- The listener
-
removeNamingListener
Description copied from interface:NamingStoreRemove aNamingListenerfrom all targets and scopes- Specified by:
removeNamingListenerin interfaceNamingStore- Parameters:
listener- The listener
-
add
public void add(org.jboss.msc.service.ServiceName serviceName) -
remove
public void remove(org.jboss.msc.service.ServiceName serviceName) -
buildServiceName
-
getServiceNameBase
protected org.jboss.msc.service.ServiceName getServiceNameBase() -
getServiceRegistry
protected org.jboss.msc.service.ServiceRegistry getServiceRegistry() -
getBaseName
Description copied from interface:NamingStoreRetrieves the store's base name, which is the prefix for the absolute name of each entry in the store.- Specified by:
getBaseNamein interfaceNamingStore- Returns:
- Throws:
NamingException
-