Example usage for org.springframework.core.serializer.support DeserializingConverter DeserializingConverter

List of usage examples for org.springframework.core.serializer.support DeserializingConverter DeserializingConverter

Introduction

In this page you can find the example usage for org.springframework.core.serializer.support DeserializingConverter DeserializingConverter.

Prototype

public DeserializingConverter() 

Source Link

Document

Create a DeserializingConverter with default java.io.ObjectInputStream configuration, using the "latest user-defined ClassLoader".

Usage

From source file:org.springframework.integration.jdbc.JdbcMessageStore.java

/**
 * Convenient constructor for configuration use.
 *//*  w  ww . ja v a2 s.  com*/
public JdbcMessageStore() {
    deserializer = new DeserializingConverter();
    serializer = new SerializingConverter();
}

From source file:org.springframework.integration.jdbc.store.JdbcChannelMessageStore.java

/**
 * Convenient constructor for configuration use.
 *//*from   ww w.j  a  va2 s  .c o m*/
public JdbcChannelMessageStore() {
    deserializer = new DeserializingConverter();
    serializer = new SerializingConverter();
}

From source file:org.springframework.integration.jdbc.store.JdbcMessageStore.java

/**
 * Create a {@link MessageStore} with all mandatory properties.
 * @param jdbcOperations a {@link JdbcOperations}
 * @since 4.3.9/* w ww .j a v a 2  s. c  om*/
 */
public JdbcMessageStore(JdbcOperations jdbcOperations) {
    Assert.notNull(jdbcOperations, "'dataSource' must not be null");
    this.jdbcTemplate = jdbcOperations;
    this.deserializer = new DeserializingConverter();
    this.serializer = new SerializingConverter();
}

From source file:org.springframework.session.jdbc.JdbcOperationsSessionRepository.java

private static GenericConversionService createDefaultConversionService() {
    GenericConversionService converter = new GenericConversionService();
    converter.addConverter(Object.class, byte[].class, new SerializingConverter());
    converter.addConverter(byte[].class, Object.class, new DeserializingConverter());
    return converter;
}