org.apache.commons.jelly.tags.threads
Class SynchronizeTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.threads.UseMutexTag
          extended byorg.apache.commons.jelly.tags.threads.SynchronizeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SynchronizeTag
extends UseMutexTag

Synchronize a block inside of a thread using the passed in mutex. The mutex object passed in does not have to have been created using the mutex tag, it can be any object at all.

Author:
Jason Horman

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SynchronizeTag()
           
 
Method Summary
protected  void useMutex(java.lang.Object mutex, org.apache.commons.jelly.XMLOutput output)
          Synchronize on the mutex
 
Methods inherited from class org.apache.commons.jelly.tags.threads.UseMutexTag
doTag, getMutex, setMutex
 
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

SynchronizeTag

public SynchronizeTag()
Method Detail

useMutex

protected void useMutex(java.lang.Object mutex,
                        org.apache.commons.jelly.XMLOutput output)
                 throws org.apache.commons.jelly.JellyTagException
Synchronize on the mutex

Specified by:
useMutex in class UseMutexTag
Throws:
org.apache.commons.jelly.JellyTagException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.