Class TranslationDynamicHeaderFieldMapping.FieldNamesToHeaderNamesInitializer
- All Implemented Interfaces:
org.apache.commons.lang3.concurrent.ConcurrentInitializer<Map<String,
Map<String, String>>>
- Enclosing class:
- TranslationDynamicHeaderFieldMapping
public static class TranslationDynamicHeaderFieldMapping.FieldNamesToHeaderNamesInitializer
extends org.apache.commons.lang3.concurrent.LazyInitializer<Map<String,Map<String,String>>>
For reverse-mapping cases as are needed in
TranslationDynamicHeaderFieldMapping.mapFromFieldToHeader(String, String)
, we
want the reverse mappings from ImportSpecification.getHeaderFieldConfigsByRowType()
to be computed exactly once and in a thread-safe way. Thus, we leverage the lazy initializer
pattern.-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.commons.lang3.concurrent.LazyInitializer
get
-
Constructor Details
-
FieldNamesToHeaderNamesInitializer
-
-
Method Details
-
initialize
-