at.gv.egiz.pdfas.placeholder
Class SignaturePlaceholderContext

java.lang.Object
  extended by at.gv.egiz.pdfas.placeholder.SignaturePlaceholderContext

public class SignaturePlaceholderContext
extends Object

Store and retrieve SignaturePlaceholderData in/from a thread local context.

Author:
exthex

Method Summary
static SignaturePlaceholderData getSignaturePlaceholderData()
          Get the SignaturePlaceholderData which is currently bound to this thread.
static boolean isSignaturePlaceholderDataSet()
           
static void setSignaturePlaceholderData(SignaturePlaceholderData data)
          Bind a SignaturePlaceholderData to this thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSignaturePlaceholderData

public static SignaturePlaceholderData getSignaturePlaceholderData()
Get the SignaturePlaceholderData which is currently bound to this thread. Might be null.

Returns:

isSignaturePlaceholderDataSet

public static boolean isSignaturePlaceholderDataSet()
Returns:
true if there is currently a SignaturePlaceholderData bound to this thread, false otherwise.

setSignaturePlaceholderData

public static void setSignaturePlaceholderData(SignaturePlaceholderData data)
Bind a SignaturePlaceholderData to this thread. If the given data is null, the context will be cleared.

Parameters:
data - if null, clears the ThreadLocal, else binds the data to the current thread.


Copyright © 2006-2011. All Rights Reserved.