public final class ApplicationContext extends Object
| Modifier and Type | Method and Description |
|---|---|
WriteSession |
createSession()
Create a
WriteSession. |
void |
disposeSession(WriteSession session)
Deprecated.
Use the
ReadSession.close() method instead. |
static ApplicationContext |
getInstance()
Get the Application context.
|
String |
toString() |
public WriteSession createSession() throws ApplicationContextException
WriteSession. Only one write session can be active per
thread. Sessions should not be shared among threads.ApplicationContextException - if no write session can be created for whichever reason,
e.g., the Application Engine is off-line or is not available.@Deprecated public void disposeSession(WriteSession session) throws ApplicationContextException
ReadSession.close() method instead.WriteSession. Once the session has been disposed it
will not be active (usable) any longer.session - the session to be disposedNullPointerException - if the session is null.ApplicationContextException - if the session cannot be disposed, e.g., the session is not
owned by the current thread.public static ApplicationContext getInstance()
Copyright (C) 2014, Center for Open Middleware