protected MappingProcessor(ClassMappings classMappings, Configuration globalConfiguration, CacheManager cacheMgr, StatisticsManager statsMgr, List<CustomConverter> customConverterObjects, DozerEventManager eventManager, CustomFieldMapper customFieldMapper, Map<String, CustomConverter> customConverterObjectsWithId) { this.classMappings = classMappings; this.globalConfiguration = globalConfiguration; this.statsMgr = statsMgr; this.customConverterObjects = customConverterObjects; this.eventMgr = eventManager; this.customFieldMapper = customFieldMapper; this.converterByDestTypeCache = cacheMgr.getCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name()); this.superTypeCache = cacheMgr.getCache(DozerCacheType.SUPER_TYPE_CHECK.name()); this.customConverterObjectsWithId = customConverterObjectsWithId; }
protected MappingProcessor(ClassMappings classMappings, Configuration globalConfiguration, CacheManager cacheMgr, StatisticsManager statsMgr, List<CustomConverter> customConverterObjects, DozerEventManager eventManager, CustomFieldMapper customFieldMapper, Map<String, CustomConverter> customConverterObjectsWithId, List<FieldMappingCondition> conditionObjects, Map<String, FieldMappingCondition> conditionObjectsWithId, List<CollectionItemDiscriminator> collectionItemDiscriminatorObjects, Map<String, CollectionItemDiscriminator> collectionItemDiscriminatorObjectsWithId) { this.classMappings = classMappings; this.globalConfiguration = globalConfiguration; this.statsMgr = statsMgr; this.customConverterObjects = customConverterObjects; this.eventMgr = eventManager; this.customFieldMapper = customFieldMapper; this.converterByDestTypeCache = cacheMgr.getCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name()); this.superTypeCache = cacheMgr.getCache(DozerCacheType.SUPER_TYPE_CHECK.name()); this.customConverterObjectsWithId = customConverterObjectsWithId; this.conditionObjects = conditionObjects; this.conditionObjectsWithId = conditionObjectsWithId; this.collectionItemDiscriminatorObjects = collectionItemDiscriminatorObjects; this.collectionItemDiscriminatorObjectsWithId = collectionItemDiscriminatorObjectsWithId; if (customConverterObjectsWithId != null) { for (CustomConverter converter : customConverterObjectsWithId.values()) { if (converter instanceof MapIdConverterAggregator) { mapIdConverterAggregator = (MapIdConverterAggregator)converter; } } } }
this.eventMgr = eventManager; this.customFieldMapper = customFieldMapper; this.converterByDestTypeCache = cacheMgr.getCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name()); this.superTypeCache = cacheMgr.getCache(DozerCacheType.SUPER_TYPE_CHECK.name()); this.customConverterObjectsWithId = customConverterObjectsWithId; this.conditionObjects = conditionObjects;
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to // the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to // the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }