Package com.itextpdf.forms.fields
Class FormsMetaInfoStaticContainer
- java.lang.Object
-
- com.itextpdf.forms.fields.FormsMetaInfoStaticContainer
-
public final class FormsMetaInfoStaticContainer extends java.lang.ObjectClass to store meta info that will be used in forms module in static context.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ThreadLocal<MetaInfoContainer>metaInfoForLayout
-
Constructor Summary
Constructors Modifier Constructor Description privateFormsMetaInfoStaticContainer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static MetaInfoContainergetMetaInfoForLayout()Gets meta info which was set previously.static voiduseMetaInfoDuringTheAction(MetaInfoContainer metaInfoContainer, Action action)Sets meta info related to forms into static context, executes the action and then cleans meta info.
-
-
-
Field Detail
-
metaInfoForLayout
private static java.lang.ThreadLocal<MetaInfoContainer> metaInfoForLayout
-
-
Method Detail
-
useMetaInfoDuringTheAction
public static void useMetaInfoDuringTheAction(MetaInfoContainer metaInfoContainer, Action action)
Sets meta info related to forms into static context, executes the action and then cleans meta info.Keep in mind that this instance will only be accessible from the same thread.
- Parameters:
metaInfoContainer- instance to be set.action- action which will be executed while meta info is set to static context.
-
getMetaInfoForLayout
static MetaInfoContainer getMetaInfoForLayout()
Gets meta info which was set previously.Keep in mind that this operation will return meta info instance which was set previously from the same thread.
- Returns:
- meta info instance.
-
-