@java.lang.SuppressWarnings({"unchecked","rawtypes"}) public class ConvertersConfigurationHolder extends java.lang.Object
Singleton which holds all default and named configurations for the Converter classes.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CONVERTERS_DEFAULT_ENCODING |
|
private static ConvertersConfigurationHolder |
INSTANCE |
|
private java.util.concurrent.ConcurrentMap<java.lang.Class<? extends Converter>, ConverterConfiguration> |
defaultConfiguration |
|
private java.util.concurrent.ConcurrentMap<java.lang.Class<? extends Converter>, java.util.Map<java.lang.String, ConverterConfiguration>> |
namedConfigurations |
|
private java.lang.ThreadLocal<java.util.Map<java.lang.Class<? extends Converter>, ConverterConfiguration>> |
threadLocalConfiguration |
Constructor and description |
---|
private ConvertersConfigurationHolder() |
Type Params | Return Type | Name and description |
---|---|---|
|
public static void |
clear() |
|
protected static java.lang.ThreadLocal<java.util.Map<java.lang.Class<? extends Converter>, ConverterConfiguration>> |
createThreadLocalConfiguration() |
<C extends Converter> |
public static ConverterConfiguration<C> |
getConverterConfiguration(java.lang.Class<C> converterClass) |
|
private static ConvertersConfigurationHolder |
getInstance() |
<C extends Converter> |
private static java.util.Map<java.lang.String, ConverterConfiguration> |
getNamedConfigMapForConverter(java.lang.Class<C> clazz, boolean create) |
<C extends Converter> |
public static ConverterConfiguration<C> |
getNamedConverterConfiguration(java.lang.String name, java.lang.Class<C> converterClass) |
<C extends Converter> |
public static ConverterConfiguration<C> |
getThreadLocalConverterConfiguration(java.lang.Class<C> converterClass) |
|
protected java.util.Map<java.lang.Class<? extends Converter>, ConverterConfiguration> |
initialValue() |
|
public void |
run() |
<C extends Converter> |
public static void |
setDefaultConfiguration(java.lang.Class<C> c, ConverterConfiguration<C> cfg) |
<C extends Converter> |
public static void |
setDefaultConfiguration(java.lang.Class<C> c, java.util.List<ObjectMarshaller<C>> om) |
<C extends Converter> |
public static void |
setNamedConverterConfiguration(java.lang.Class<C> converterClass, java.lang.String name, ConverterConfiguration<C> cfg) |
<C extends Converter> |
public static void |
setNamedConverterConfiguration(java.lang.Class<C> converterClass, java.lang.String name, java.util.List<ObjectMarshaller<C>> om) |
<C extends Converter> |
public static void |
setThreadLocalConverterConfiguration(java.lang.Class<C> converterClass, ConverterConfiguration<C> cfg) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |