Class ServiceBasedNamingStore

java.lang.Object
org.jboss.as.naming.ServiceBasedNamingStore
All Implemented Interfaces:
NamingStore
Direct Known Subclasses:
WritableServiceBasedNamingStore

public class ServiceBasedNamingStore extends Object implements NamingStore
Author:
John Bailey, Jason T. Greene, Eduardo Martins
  • Constructor Details

    • ServiceBasedNamingStore

      public ServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase)
  • Method Details

    • lookup

      public Object lookup(Name name) throws NamingException
      Description copied from interface: NamingStore
      Look up an object from the naming store. An entry for this name must already exist.
      Specified by:
      lookup in interface NamingStore
      Parameters:
      name - The entry name
      Returns:
      The object from the store.
      Throws:
      NamingException - If any errors occur.
    • lookup

      public Object lookup(Name name, boolean dereference) throws NamingException
      Description copied from interface: NamingStore
      Look up an object from the naming store. An entry for this name must already exist.
      Specified by:
      lookup in interface NamingStore
      Parameters:
      name - The entry name
      dereference - if true indicates that managed references should retrieve the instance.
      Returns:
      The object from the store.
      Throws:
      NamingException - If any errors occur.
    • list

      public List<NameClassPair> list(Name name) throws NamingException
      Description copied from interface: NamingStore
      List the NameClassPair instances for the provided name. An entry for this name must already exist and be bound to a valid context.
      Specified by:
      list in interface NamingStore
      Parameters:
      name - The entry name
      Returns:
      The NameClassPair instances
      Throws:
      NamingException - If any errors occur
    • listBindings

      public List<Binding> listBindings(Name name) throws NamingException
      Description copied from interface: NamingStore
      List the binding objects for a specified name. An entry for this name must already exist and be bound to a valid context.
      Specified by:
      listBindings in interface NamingStore
      Parameters:
      name - The entry name
      Returns:
      The bindings
      Throws:
      NamingException - If any errors occur
    • close

      public void close() throws NamingException
      Description copied from interface: NamingStore
      Close the naming store and cleanup any resource used by the store.
      Specified by:
      close in interface NamingStore
      Throws:
      NamingException - If any errors occur
    • addNamingListener

      public void addNamingListener(Name target, int scope, NamingListener listener)
      Description copied from interface: NamingStore
      Add a NamingListener for a specific target and scope.
      Specified by:
      addNamingListener in interface NamingStore
      Parameters:
      target - The target name to add the listener to
      scope - The listener scope
      listener - The listener
    • removeNamingListener

      public void removeNamingListener(NamingListener listener)
      Description copied from interface: NamingStore
      Remove a NamingListener from all targets and scopes
      Specified by:
      removeNamingListener in interface NamingStore
      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

      protected org.jboss.msc.service.ServiceName buildServiceName(Name name)
    • getServiceNameBase

      protected org.jboss.msc.service.ServiceName getServiceNameBase()
    • getServiceRegistry

      protected org.jboss.msc.service.ServiceRegistry getServiceRegistry()
    • getBaseName

      public Name getBaseName() throws NamingException
      Description copied from interface: NamingStore
      Retrieves the store's base name, which is the prefix for the absolute name of each entry in the store.
      Specified by:
      getBaseName in interface NamingStore
      Returns:
      Throws:
      NamingException