|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--springs.context.threads.AgentCreator
A Springs agent creator.
Field Summary | |
protected springs.agent.SpringsAgent |
_agent
|
protected java.lang.Throwable |
_error
|
protected boolean |
_isMoving
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
AgentCreator(springs.agent.SpringsAgent agent,
boolean isMoving)
Constructor. |
Method Summary | |
void |
createAgent()
Creates the agent. |
protected abstract void |
createAgentTemplate()
|
java.lang.Throwable |
getError()
In case the creation failed, it gets the error. |
boolean |
isSuccessful()
Obtains if the agent creation was successful. |
void |
run()
Performs the creation of the agent in background. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected springs.agent.SpringsAgent _agent
protected java.lang.Throwable _error
protected boolean _isMoving
Constructor Detail |
public AgentCreator(springs.agent.SpringsAgent agent, boolean isMoving)
agent
- the agent.isMoving
- a boolean indicating if the agent is sent because of a movement from another
context.SpringsAgent
Method Detail |
public boolean isSuccessful()
public java.lang.Throwable getError()
Throwable
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void createAgent() throws CreationException, AlreadyExistingAgentException
CreationException
- if error.
AlreadyExistingAgentException
- if the agent cannot be registered because it already
exist at the context.CreationException
,
AlreadyExistingAgentException
protected abstract void createAgentTemplate() throws CreationException, AlreadyExistingAgentException
CreationException
AlreadyExistingAgentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |