|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.threads.UseThreadTag
Base class for tags that will "use" threads.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
UseThreadTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
The default behavior is to either use the set thread or to search for a parent thread to use. |
java.lang.Thread |
getThread()
Get a reference to the thread to use |
java.util.List |
getThreadGroup()
Get the thread group |
void |
setSearchForParentThread(boolean searchForParent)
If true the tag will search for a parent thread tag to "use" if no thread was set via setThread. |
void |
setThread(java.lang.Thread thread)
Set the thread to use in some way. |
void |
setThreadGroup(java.util.List threadGroup)
Set the thread group to "use". |
protected abstract void |
useThread(java.lang.Thread thread,
org.apache.commons.jelly.XMLOutput output)
Implement this method to do something with the thread |
protected abstract void |
useThreadGroup(java.util.List threadGroup,
org.apache.commons.jelly.XMLOutput output)
Implement this method to do something with the threadGroup |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UseThreadTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
protected abstract void useThread(java.lang.Thread thread, org.apache.commons.jelly.XMLOutput output) throws java.lang.InterruptedException
java.lang.InterruptedException
protected abstract void useThreadGroup(java.util.List threadGroup, org.apache.commons.jelly.XMLOutput output) throws java.lang.InterruptedException
java.lang.InterruptedException
public void setThread(java.lang.Thread thread)
public java.lang.Thread getThread()
public void setThreadGroup(java.util.List threadGroup)
threadGroup
- The threadGroup created with the group tag.public java.util.List getThreadGroup()
public void setSearchForParentThread(boolean searchForParent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |