Package org.jboss.as.remoting
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 org.jboss.msc.service.ServiceNameSERVICE_NAMEDeprecated.
-
Constructor Summary
Constructors Constructor Description HttpListenerRegistryService()Deprecated.HttpListenerRegistryService(Consumer<io.undertow.server.ListenerRegistry> serviceConsumer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.server.ListenerRegistrygetValue()static voidinstall(org.jboss.msc.service.ServiceTarget serviceTarget)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Field Detail
-
SERVICE_NAME
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
Deprecated.
-
-
Constructor Detail
-
HttpListenerRegistryService
@Deprecated public HttpListenerRegistryService()
Deprecated.
-
HttpListenerRegistryService
public HttpListenerRegistryService(Consumer<io.undertow.server.ListenerRegistry> serviceConsumer)
-
-
Method Detail
-
install
public static void install(org.jboss.msc.service.ServiceTarget serviceTarget)
-
start
public void start(org.jboss.msc.service.StartContext context)
- Specified by:
startin interfaceorg.jboss.msc.Service
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public io.undertow.server.ListenerRegistry getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<io.undertow.server.ListenerRegistry>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-