Class NamingService

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

public class NamingService extends Object implements org.jboss.msc.service.Service<NamingStore>
Service responsible for creating and managing the life-cycle of the Naming Server.
Author:
John E. Bailey, Eduardo Martins
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final org.jboss.msc.service.ServiceName
    Deprecated.
    Dependent subsystem should instead register a requirement on the CAPABILITY_NAME capability.

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.msc.value.InjectedValue<NamingStore>
    Retrieves the naming store's InjectedValue.
    Get the naming store value.
    void
    start(org.jboss.msc.service.StartContext context)
    Creates a new NamingServer and sets the naming context to use the naming server.
    void
    stop(org.jboss.msc.service.StopContext context)
    Removes the naming server from the naming context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CAPABILITY_NAME

      public static final String CAPABILITY_NAME
      See Also:
    • SERVICE_NAME

      @Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
      Deprecated.
      Dependent subsystem should instead register a requirement on the CAPABILITY_NAME capability.
  • Constructor Details

    • NamingService

      public NamingService()
      Construct a new instance.
  • Method Details

    • getNamingStore

      public org.jboss.msc.value.InjectedValue<NamingStore> getNamingStore()
      Retrieves the naming store's InjectedValue.
      Returns:
    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Creates a new NamingServer and sets the naming context to use the naming server.
      Specified by:
      start in interface org.jboss.msc.Service
      Parameters:
      context - The start context
      Throws:
      org.jboss.msc.service.StartException - If any errors occur setting up the naming server
    • stop

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

      public NamingStore getValue() throws IllegalStateException
      Get the naming store value.
      Specified by:
      getValue in interface org.jboss.msc.value.Value<NamingStore>
      Returns:
      The naming store.
      Throws:
      IllegalStateException