public class ErraiServiceImpl<S> extends Object implements ErraiService<S>
AUTHORIZATION_SERVICE, AUTHORIZATION_SVC_SUBJECT, ERRAI_DEFAULT_JNDI, SERVER_ECHO_SERVICE, SESSION_AUTH_DATA
Constructor and Description |
---|
ErraiServiceImpl(ErraiServiceConfigurator configurator)
Initializes the errai service with a bus and configurator
|
Modifier and Type | Method and Description |
---|---|
void |
addShutdownHook(Runnable runnable) |
ServerMessageBus |
getBus()
Gets the bus associated with this service
|
ErraiServiceConfigurator |
getConfiguration()
Gets the configuration used to initalize the service
|
RequestDispatcher |
getDispatcher() |
SessionProvider<S> |
getSessionProvider() |
void |
setDispatcher(RequestDispatcher dispatcher) |
void |
setSessionProvider(SessionProvider<S> sessionProvider) |
void |
stopService()
Shut down the entire Errai service.
|
void |
store(Collection<Message> messages)
Stores a collection of messages/
|
void |
store(Message message)
Passes off the message to the bus for handling
|
@Inject public ErraiServiceImpl(ErraiServiceConfigurator configurator)
configurator
- - the configurator to take care of the configuration for the servicepublic void store(Message message)
store
in interface ErraiService<S>
message
- - the message to store/deliverpublic void store(Collection<Message> messages)
ErraiService
store
in interface ErraiService<S>
public void stopService()
ErraiService
stopService
in interface ErraiService<S>
public ServerMessageBus getBus()
getBus
in interface ErraiService<S>
public ErraiServiceConfigurator getConfiguration()
getConfiguration
in interface ErraiService<S>
public void addShutdownHook(Runnable runnable)
addShutdownHook
in interface ErraiService<S>
public SessionProvider<S> getSessionProvider()
getSessionProvider
in interface ServiceComposite<S>
public void setSessionProvider(SessionProvider<S> sessionProvider)
setSessionProvider
in interface ServiceComposite<S>
public RequestDispatcher getDispatcher()
getDispatcher
in interface ServiceComposite<S>
public void setDispatcher(RequestDispatcher dispatcher)
setDispatcher
in interface ServiceComposite<S>
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.