@ApplicationScoped public class SessionManagerImpl extends Object implements SessionManager
| Modifier | Constructor and Description |
|---|---|
protected |
SessionManagerImpl() |
|
SessionManagerImpl(DefinitionUtils definitionUtils,
org.jboss.errai.ioc.client.api.ManagedInstance<ClientSession> sessionInstances,
javax.enterprise.event.Event<SessionOpenedEvent> sessionOpenedEvent,
javax.enterprise.event.Event<SessionDestroyedEvent> sessionDestroyedEvent,
javax.enterprise.event.Event<OnSessionErrorEvent> sessionErrorEvent) |
| Modifier and Type | Method and Description |
|---|---|
<S extends ClientSession> |
destroy(S session) |
<S extends ClientSession> |
getCurrentSession() |
void |
handleClientError(ClientRuntimeError error) |
void |
handleCommandError(CommandException ce) |
<S extends ClientSession> |
newSession(Metadata metadata,
Class<S> sessionType,
Consumer<S> sessionConsumer) |
<S extends ClientSession> |
open(S session) |
protected SessionManagerImpl()
@Inject public SessionManagerImpl(DefinitionUtils definitionUtils, @Any org.jboss.errai.ioc.client.api.ManagedInstance<ClientSession> sessionInstances, javax.enterprise.event.Event<SessionOpenedEvent> sessionOpenedEvent, javax.enterprise.event.Event<SessionDestroyedEvent> sessionDestroyedEvent, javax.enterprise.event.Event<OnSessionErrorEvent> sessionErrorEvent)
public <S extends ClientSession> void newSession(Metadata metadata, Class<S> sessionType, Consumer<S> sessionConsumer)
newSession in interface SessionManagerpublic <S extends ClientSession> void open(S session)
open in interface SessionManagerpublic <S extends ClientSession> void destroy(S session)
destroy in interface SessionManagerpublic <S extends ClientSession> S getCurrentSession()
getCurrentSession in interface SessionManagerpublic void handleCommandError(CommandException ce)
handleCommandError in interface SessionManagerpublic void handleClientError(ClientRuntimeError error)
handleClientError in interface SessionManagerCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.