Class 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 Detail

      • 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 Detail

      • NamingService

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

      • 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.