|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.bus.server.service.ErraiServiceImpl<S>
public class ErraiServiceImpl<S>
Default implementation of the ErraiBus server-side service.
Field Summary |
---|
Fields inherited from interface org.jboss.errai.bus.server.service.ErraiService |
---|
AUTHORIZATION_SERVICE, AUTHORIZATION_SVC_SUBJECT, ERRAI_DEFAULT_JNDI, SERVER_ECHO_SERVICE, SESSION_AUTH_DATA |
Constructor Summary | |
---|---|
ErraiServiceImpl(ErraiServiceConfigurator configurator)
Initializes the errai service with a bus and configurator |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public ErraiServiceImpl(ErraiServiceConfigurator configurator)
configurator
- - the configurator to take care of the configuration for the serviceMethod Detail |
---|
public 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>
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |