Class NamingStoreService

java.lang.Object
org.jboss.as.naming.service.NamingStoreService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<ServiceBasedNamingStore>, org.jboss.msc.value.Value<ServiceBasedNamingStore>

public class NamingStoreService extends Object implements org.jboss.msc.service.Service<ServiceBasedNamingStore>
Service responsible for managing the creation and life-cycle of a service based naming store.
Author:
John E. Bailey, Stuart Douglas, Eduardo Martins
  • Constructor Details

    • NamingStoreService

      public NamingStoreService()
    • NamingStoreService

      public NamingStoreService(boolean readOnly)
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Creates the naming store if not provided by the constructor.
      Specified by:
      start in interface org.jboss.msc.Service
      Parameters:
      context - The start context
      Throws:
      org.jboss.msc.service.StartException - If any problems occur creating the context
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Destroys the naming store.
      Specified by:
      stop in interface org.jboss.msc.Service
      Parameters:
      context - The stop context
    • getValue

      Get the context value.
      Specified by:
      getValue in interface org.jboss.msc.value.Value<ServiceBasedNamingStore>
      Returns:
      The naming store
      Throws:
      IllegalStateException