public final class ServerRuntime extends Object implements Module
MultiDispatcher.| Constructor and Description |
|---|
ServerRuntime() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(Class<?> eventClass,
Interceptor it)
Adds an interceptor of server-side events to this instance.
|
void |
dispatchEvent(Event event)
Dispatches the given event to the underlying server-side interceptors.
|
MultiDispatcher |
getDispatcher() |
void |
init(ModuleContext context)
Called upon Ubik startup.
|
void |
start(ModuleContext context)
Called after
#init(), when all modules have initialized. |
void |
stop()
Called upon Ubik shutdown.
|
public void init(ModuleContext context)
Modulepublic void start(ModuleContext context)
Module#init(), when all modules have initialized.public void stop()
Modulepublic MultiDispatcher getDispatcher()
MultiDispatcher.#dispatcher.public void addInterceptor(Class<?> eventClass, Interceptor it) throws InvalidInterceptorException
public void dispatchEvent(Event event)
MultiDispatcher.dispatch(Event)Copyright © 2012 Sapia OSS. All Rights Reserved.