Class ServiceBasedNamingStore

    • Constructor Detail

      • ServiceBasedNamingStore

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

      • 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
      • 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()