Class HttpListenerRegistryService

java.lang.Object
org.jboss.as.remoting.HttpListenerRegistryService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<io.undertow.server.ListenerRegistry>, org.jboss.msc.value.Value<io.undertow.server.ListenerRegistry>

public class HttpListenerRegistryService extends Object implements org.jboss.msc.service.Service<io.undertow.server.ListenerRegistry>
Service that maintains a registry of all Undertow listeners, and the services that are registered on them. TODO: not sure if this really belongs here conceptually, but in practice it is only used to match upgrade handlers with listeners
Author:
Stuart Douglas, Richard Opalka
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.msc.service.ServiceName
    Deprecated.

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

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    HttpListenerRegistryService(Consumer<io.undertow.server.ListenerRegistry> serviceConsumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.undertow.server.ListenerRegistry
     
    static void
    install(org.jboss.msc.service.ServiceTarget serviceTarget)
     
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class java.lang.Object

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

    • SERVICE_NAME

      @Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
      Deprecated.
  • Constructor Details

    • HttpListenerRegistryService

      @Deprecated public HttpListenerRegistryService()
      Deprecated.
    • HttpListenerRegistryService

      public HttpListenerRegistryService(Consumer<io.undertow.server.ListenerRegistry> serviceConsumer)
  • Method Details

    • install

      public static void install(org.jboss.msc.service.ServiceTarget serviceTarget)
    • start

      public void start(org.jboss.msc.service.StartContext context)
      Specified by:
      start in interface org.jboss.msc.Service
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      public io.undertow.server.ListenerRegistry getValue() throws IllegalStateException, IllegalArgumentException
      Specified by:
      getValue in interface org.jboss.msc.value.Value<io.undertow.server.ListenerRegistry>
      Throws:
      IllegalStateException
      IllegalArgumentException