public class SessionAccess extends Object
SessionAware| Modifier and Type | Method and Description |
|---|---|
static Link |
current()
Returns the current thread-local session link.
|
static Link |
obtain(Remote obj)
Returns the link for the session that a client-side remote object is bound to.
|
static Link |
tryCurrent()
Returns the current thread-local session link.
|
static Link |
tryObtain(Remote obj)
Returns the link for the session that a client-side remote object is bound to.
|
public static Link current()
SessionAware remote object, and it is cleared
when the method returns. Closing the link closes the session.IllegalStateException - if no link is currently available, possibly because
remote object doesn't implement SessionAwarepublic static Link tryCurrent()
SessionAware remote object, and it is cleared
when the method returns. Closing the link closes the session.SessionAwarepublic static Link obtain(Remote obj)
IllegalArgumentException - if object is not a client-side remote object stubCopyright © 2006–2015 Cojen. All rights reserved.