org.springframework.core.serializer.Serializer Java Examples

The following examples show how to use org.springframework.core.serializer.Serializer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SerializationDelegate.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * 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;
}
 
Example #2
Source File: SerializationDelegate.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * 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;
}
 
Example #3
Source File: SerializationDelegate.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example #4
Source File: SerializingConverter.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * 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;
}
 
Example #5
Source File: SerializingConverter.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * 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;
}
 
Example #6
Source File: SerializingConverter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #7
Source File: SerializingConverter.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * 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;
}