public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Utils.AccessControlledMapFinder |
static interface |
Utils.ContextMapAdditionalAccessors |
static interface |
Utils.PrivilegedWireAdapterAccessor |
| Modifier and Type | Field and Description |
|---|---|
protected static Long |
DUMMY_VALUE |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static ContextMap |
getScopeAwareContextMap() |
static ContextMapPropagator |
getScopeAwarePropagator() |
static boolean |
isAsciiString(String s) |
static void |
registerContextFactoryForPrefixNamed(String prefixName,
ContextViewFactory factory)
ViewCapable objects are created by the context propagation framework
when needed using the ContextViewFactory registered against the
specified context name
|
static String |
toString(byte[] bytes) |
static void |
validateFactoryRegistrationArgs(String key,
LoggerAdapter.MessageID messageID,
String contextClassName,
Object factory,
Map<String,?> factoriesByKey) |
protected static final Long DUMMY_VALUE
public static ContextMapPropagator getScopeAwarePropagator()
public static ContextMap getScopeAwareContextMap()
public static void registerContextFactoryForPrefixNamed(String prefixName, ContextViewFactory factory)
prefixName - This is the name of the context that should be instantiated
with the corresponding factory.factory - A ContextViewFactory.public static void validateFactoryRegistrationArgs(String key, LoggerAdapter.MessageID messageID, String contextClassName, Object factory, Map<String,?> factoriesByKey)
public static boolean isAsciiString(String s)
public static String toString(byte[] bytes)
Copyright © 2017. All rights reserved.