Java 类org.springframework.core.serializer.Serializer 实例源码

项目:spring    文件:SerializationDelegate.java   
/**
 * Create a {@code SerializationDelegate} with the given serializer/deserializer.
 * @param serializer the {@link Serializer} to use (never {@code null)}
 * @param deserializer the {@link Deserializer} to use (never {@code null)}
 */
public SerializationDelegate(Serializer<Object> serializer, Deserializer<Object> deserializer) {
    Assert.notNull(serializer, "Serializer must not be null");
    Assert.notNull(deserializer, "Deserializer must not be null");
    this.serializer = serializer;
    this.deserializer = deserializer;
}
项目:samza-spring-boot-starter    文件:SpringSerde.java   
public SpringSerde(Serializer<T> serializer, Deserializer<T> deserializer) {
    Assert.notNull(serializer, "Serializer cannot be null.");
    Assert.notNull(deserializer, "Deserializer cannot be null.");
    this.serializer = serializer;
    this.deserializer = deserializer;
}
项目:spring4-understanding    文件:SerializingConverter.java   
/**
 * Create a {@code SerializingConverter} that delegates to the provided {@link Serializer}.
 */
public SerializingConverter(Serializer<Object> serializer) {
    Assert.notNull(serializer, "Serializer must not be null");
    this.serializer = serializer;
}
项目:spring    文件:SerializingConverter.java   
/**
 * Create a {@code SerializingConverter} that delegates to the provided {@link Serializer}.
 */
public SerializingConverter(Serializer<Object> serializer) {
    Assert.notNull(serializer, "Serializer must not be null");
    this.serializer = serializer;
}
项目:class-guard    文件:SerializingConverter.java   
/**
 * Create a SerializingConverter that delegates to the provided {@link Serializer}
 */
public SerializingConverter(Serializer<Object> serializer) {
    Assert.notNull(serializer, "Serializer must not be null");
    this.serializer = serializer;
}