public class ApiCallScopeUtils extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
Modifier and Type | Method and Description |
---|---|
static void |
seedSharedParams(GuiceSimpleScope apiCallScope,
SoyMsgBundle msgBundle,
BidiGlobalDir bidiGlobalDir)
Helper utility to seed params shared by multiple backends.
|
static void |
seedSharedParams(GuiceSimpleScope apiCallScope,
SoyMsgBundle msgBundle,
int bidiGlobalDir)
Helper utility to seed params shared by multiple backends.
|
public static void seedSharedParams(GuiceSimpleScope apiCallScope, @Nullable SoyMsgBundle msgBundle, int bidiGlobalDir)
apiCallScope
- The scope object that manages the API call scope.msgBundle
- The bundle of translated messages, or null to use the messages from the SoybidiGlobalDir
- The bidi global directionality (ltr=1, rtl=-1, or 0 to use a value derived
from the msgBundle locale, if any, otherwise ltr).public static void seedSharedParams(GuiceSimpleScope apiCallScope, @Nullable SoyMsgBundle msgBundle, @Nullable BidiGlobalDir bidiGlobalDir)
apiCallScope
- The scope object that manages the API call scope.msgBundle
- The bundle of translated messages, or null to use the messages from the SoybidiGlobalDir
- The bidi global directionality. If null, it is derived from the msgBundle
locale, if any, otherwise ltr.