本文整理匯總了Java中org.springframework.core.serializer.DefaultSerializer類的典型用法代碼示例。如果您正苦於以下問題:Java DefaultSerializer類的具體用法?Java DefaultSerializer怎麽用?Java DefaultSerializer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DefaultSerializer類屬於org.springframework.core.serializer包,在下文中一共展示了DefaultSerializer類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: SerializingConverter
import org.springframework.core.serializer.DefaultSerializer; //導入依賴的package包/類
/**
* Create a default {@code SerializingConverter} that uses standard Java serialization.
*/
public SerializingConverter() {
this.serializer = new DefaultSerializer();
}
示例2: SerializingConverter
import org.springframework.core.serializer.DefaultSerializer; //導入依賴的package包/類
/**
* Create a default SerializingConverter that uses standard Java serialization.
*/
public SerializingConverter() {
this.serializer = new DefaultSerializer();
}
示例3: SerializationDelegate
import org.springframework.core.serializer.DefaultSerializer; //導入依賴的package包/類
/**
* Create a {@code SerializationDelegate} with a default serializer/deserializer
* for the given {@code ClassLoader}.
* @see DefaultDeserializer
* @see DefaultDeserializer#DefaultDeserializer(ClassLoader)
*/
public SerializationDelegate(ClassLoader classLoader) {
this.serializer = new DefaultSerializer();
this.deserializer = new DefaultDeserializer(classLoader);
}