• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java EntityInstantiators类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.springframework.data.convert.EntityInstantiators的典型用法代码示例。如果您正苦于以下问题:Java EntityInstantiators类的具体用法?Java EntityInstantiators怎么用?Java EntityInstantiators使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

EntityInstantiators类属于org.springframework.data.convert包,在下文中一共展示了EntityInstantiators类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: MappingRedisConverter

点赞 3

import org.springframework.data.convert.EntityInstantiators; //导入依赖的package包/类
public MappingRedisConverter(IndexConfiguration indexConfiguration, ReferenceResolver referenceResolver) {

		mappingContext = new KeyValueMappingContext();
		entityInstantiators = new EntityInstantiators();

		this.conversionService = new DefaultConversionService();
		this.conversionService.addConverter(new BinaryConverters.StringToBytesConverter());
		this.conversionService.addConverter(new BinaryConverters.BytesToStringConverter());
		this.conversionService.addConverter(new BinaryConverters.NumberToBytesConverter());
		this.conversionService.addConverterFactory(new BinaryConverters.BytesToNumberConverterFactory());
		this.conversionService.addConverter(new BinaryConverters.EnumToBytesConverter());
		this.conversionService.addConverterFactory(new BinaryConverters.BytesToEnumConverterFactory());
		this.conversionService.addConverter(new BinaryConverters.BooleanToBytesConverter());
		this.conversionService.addConverter(new BinaryConverters.BytesToBooleanConverter());
		this.conversionService.addConverter(new BinaryConverters.DateToBytesConverter());
		this.conversionService.addConverter(new BinaryConverters.BytesToDateConverter());

		typeMapper = new DefaultTypeMapper<RedisData>(new RedisTypeAliasAccessor(this.conversionService));

		this.indexConfiguration = indexConfiguration != null ? indexConfiguration : new IndexConfiguration();
		this.referenceResolver = referenceResolver;
	}
 

开发者ID:christophstrobl,
项目名称:spring-data-keyvalue-redis,
代码行数:23,
代码来源:MappingRedisConverter.java

示例2: AbstractCrateConverter

点赞 2

import org.springframework.data.convert.EntityInstantiators; //导入依赖的package包/类
protected AbstractCrateConverter(GenericConversionService conversionService) {
	super();
	this.conversionService = conversionService == null ? new DefaultConversionService() 
													   : conversionService;
	this.instantiators = new EntityInstantiators();
	this.conversions = new CustomConversions();
}
 

开发者ID:KPTechnologyLab,
项目名称:spring-data-crate,
代码行数:8,
代码来源:AbstractCrateConverter.java

示例3: setInstantiators

点赞 1

import org.springframework.data.convert.EntityInstantiators; //导入依赖的package包/类
/**
 * Registers {@link EntityInstantiators} to customize entity instantiation.
 *
 * @param instantiators
 */
public void setInstantiators(EntityInstantiators instantiators) {
	this.instantiators = instantiators;
}
 

开发者ID:spring-projects,
项目名称:spring-vault,
代码行数:9,
代码来源:AbstractVaultConverter.java

示例4: setInstantiators

点赞 1

import org.springframework.data.convert.EntityInstantiators; //导入依赖的package包/类
/**
 * Registers {@link EntityInstantiators} to customize entity instantiation.
 * 
 * @param instantiators
 */
public void setInstantiators(EntityInstantiators instantiators) {
	this.instantiators = instantiators;
}
 

开发者ID:KPTechnologyLab,
项目名称:spring-data-crate,
代码行数:9,
代码来源:AbstractCrateConverter.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)