|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.session.ImporterContext
An object passed into ImporterCommand implementations that provides a window into the execution environment. Try to supply the necessary system resources here, to keep the task's awareness of its execution context constrained. This will make it easier to run tasks in a variety of contexts if necessary.
The context may be used by more than one task thread, so everything in here needs to be reentrant.
Field Summary | |
static java.lang.String |
code_id
|
Constructor Summary | |
ImporterContext(com.waveset.repository.Repository repo,
com.waveset.server.Server server,
Session session)
Build a task context object. |
Method Summary | |
java.lang.Object |
clone()
|
com.waveset.repository.Repository |
getRepository()
Obtain a repository. |
com.waveset.server.Server |
getServer()
Obtain the server. |
Session |
getSession()
Obtain the session |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public ImporterContext(com.waveset.repository.Repository repo, com.waveset.server.Server server, Session session)
Method Detail |
public java.lang.Object clone()
public com.waveset.repository.Repository getRepository()
Some tasks might need direct access to the repository.
public com.waveset.server.Server getServer()
public Session getSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |