public final class BundleLookupThreadContext extends Object
Bundle lookups are not guaranteed to be recorded, such as when in-context translation is disabled (production mode).
| Modifier and Type | Method and Description |
|---|---|
BundleLookupMarkup |
getLookupMarkup(String result)
Gets the lookup markup for the given String or
null if not found. |
static BundleLookupThreadContext |
getThreadContext(boolean createIfMissing)
Gets the current context or
null if none set and none created. |
static void |
removeThreadContext()
Removes any current context.
|
void |
reset()
Removes all lookups stored in this context.
|
public static BundleLookupThreadContext getThreadContext(boolean createIfMissing)
null if none set and none created.public static void removeThreadContext()
public void reset()
public BundleLookupMarkup getLookupMarkup(String result)
null if not found.
The string is looked-up by identity only: .equals() is not called. This is to give a more precise match to lookups.
Copyright © 2016. All rights reserved.