List of usage examples for org.springframework.core.convert.support DefaultConversionService DefaultConversionService
public DefaultConversionService()
From source file:ch.algotrader.config.spring.DefaultConfigProvider.java
static ConversionService createDefaultConversionService() { DefaultConversionService conversionService = new DefaultConversionService(); conversionService.addConverter(new StringToDateConverter()); conversionService.addConverter(Date.class, String.class, new ObjectToStringConverter()); return conversionService; }
From source file:org.dawnsci.marketplace.config.ApplicationConfiguration.java
@Bean public ConversionService conversionService() { return new DefaultConversionService(); }
From source file:org.springdata.ehcache.convert.AbstractEhcacheConverter.java
public AbstractEhcacheConverter(GenericConversionService conversionService) { this.conversionService = conversionService == null ? new DefaultConversionService() : conversionService; }
From source file:net.paslavsky.springrest.HttpHeadersHelperTest.java
@BeforeMethod(firstTimeOnly = true) public void setUp() throws Exception { helper = new HttpHeadersHelper(new DefaultConversionService()); }
From source file:org.develspot.data.orientdb.convert.AbstractOrientConverter.java
public AbstractOrientConverter(GenericConversionService conversionService) { this.conversionService = conversionService == null ? new DefaultConversionService() : conversionService; }
From source file:com.joyveb.dbpimpl.cass.prepare.convert.AbstractCassandraConverter.java
/** * Creates a new {@link AbstractCassandraConverter} using the given {@link GenericConversionService}. * //from w w w . j a v a2 s . c o m * @param conversionService */ public AbstractCassandraConverter(GenericConversionService conversionService) { this.conversionService = conversionService == null ? new DefaultConversionService() : conversionService; }
From source file:com._4dconcept.springframework.data.marklogic.core.convert.AbstractMarklogicConverter.java
AbstractMarklogicConverter(@Nullable GenericConversionService conversionService) {
this.conversionService = conversionService == null ? new DefaultConversionService() : conversionService;
}
From source file:org.develspot.data.orientdb.convert.MappingOrientConverter.java
public MappingOrientConverter( MappingContext<? extends OrientPersistentEntity<?>, OrientPersistentProperty> mappingContext) { super(new DefaultConversionService()); Assert.notNull(mappingContext, "MappingContext should not be null!"); this.mappingContext = mappingContext; this.spELContext = new SpELContext(new MapAccessor()); this.fieldAccessOnly = true; }
From source file:org.springdata.ehcache.convert.EhcacheMappingConverter.java
public EhcacheMappingConverter( MappingContext<? extends EhcachePersistentEntity<?>, EhcachePersistentProperty> mappingContext) { super(new DefaultConversionService()); this.mappingContext = mappingContext; }
From source file:jun.learn.scene.propertysource.AbstractPropertyResolver.java
@Override public ConfigurableConversionService getConversionService() { // Need to provide an independent DefaultConversionService, not the // shared DefaultConversionService used by PropertySourcesPropertyResolver. if (this.conversionService == null) { synchronized (this) { if (this.conversionService == null) { this.conversionService = new DefaultConversionService(); }//from w w w . j a va 2s . c o m } } return conversionService; }