|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.context.NakedObjectsContext
org.nakedobjects.runtime.context.NakedObjectsContextMultiUser
org.nakedobjects.runtime.context.NakedObjectsContextPipe
public class NakedObjectsContextPipe
A specialised NakedObjectsContext implementation that provides two sets of components: one for the server; and one for the client. This simply determines the current thread and if that thread is the server thread then it provides server data. For any other thread the client data is used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.nakedobjects.runtime.context.NakedObjectsContext |
|---|
NakedObjectsContext.ContextReplacePolicy, NakedObjectsContext.SessionClosePolicy |
| Method Summary | |
|---|---|
java.lang.String[] |
allSessionIds()
All known session Ids. |
void |
closeAllSessionsInstance()
Shutdown the application. |
static NakedObjectsContext |
createInstance(NakedObjectSessionFactory sessionFactory)
|
void |
debugData(DebugString debug)
|
java.lang.String |
debugTitle()
|
NakedObjectSession |
getSessionInstance()
Locates the current NakedObjectSession. |
protected NakedObjectSession |
getSessionInstance(java.lang.String executionContextId)
The NakedObjectSession for specified NakedObjectSession.getId(). |
NakedObjectSession |
openSessionInstance(AuthenticationSession authenticationSession)
Creates a new NakedObjectSession and binds into the current context. |
void |
setServer(java.lang.Thread server)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NakedObjectsContext createInstance(NakedObjectSessionFactory sessionFactory)
public void setServer(java.lang.Thread server)
public NakedObjectSession getSessionInstance()
NakedObjectsContextNakedObjectSession.
This might just be a singleton (eg NakedObjectsContextStatic), or could be retrieved from the
thread (eg NakedObjectsContextThreadLocal).
getSessionInstance in class NakedObjectsContextpublic NakedObjectSession openSessionInstance(AuthenticationSession authenticationSession)
NakedObjectsContextNakedObjectSession and binds into the current context.
openSessionInstance in class NakedObjectsContextpublic void closeAllSessionsInstance()
NakedObjectsContext
closeAllSessionsInstance in class NakedObjectsContextpublic java.lang.String[] allSessionIds()
NakedObjectsContextProvided primarily for debugging.
allSessionIds in class NakedObjectsContextpublic java.lang.String debugTitle()
public void debugData(DebugString debug)
debugData in interface DebugInfodebugData in class NakedObjectsContextprotected NakedObjectSession getSessionInstance(java.lang.String executionContextId)
NakedObjectsContextNakedObjectSession for specified NakedObjectSession.getId().
getSessionInstance in class NakedObjectsContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||