本文整理汇总了Java中org.fressian.handlers.WriteHandler类的典型用法代码示例。如果您正苦于以下问题:Java WriteHandler类的具体用法?Java WriteHandler怎么用?Java WriteHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WriteHandler类属于org.fressian.handlers包,在下文中一共展示了WriteHandler类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: valAt
import org.fressian.handlers.WriteHandler; //导入依赖的package包/类
@Override
public Map<String, WriteHandler> valAt(Class aClass) {
if (aClass.equals(Keyword.class)) {
Map handlerMap = new HashMap();
handlerMap.put("key", this);
return handlerMap;
} else {
return null;
}
}
开发者ID:capitalone,项目名称:cqrs-manager-for-distributed-reactive-services,代码行数:11,代码来源:FressianSerde.java
示例2: registerType
import org.fressian.handlers.WriteHandler; //导入依赖的package包/类
public static synchronized void registerType(Class type, String tag, ReadHandler readHandler, WriteHandler writeHandler) {
binaryTagCache.put(type, tag);
Handlers.installHandler(fressianWriteHandlers, type, tag, writeHandler);
fressianReadHandlers.putIfAbsent(tag, readHandler);
}
示例3: registerType
import org.fressian.handlers.WriteHandler; //导入依赖的package包/类
/**
* Register a {@link org.fressian.handlers.ReadHandler} and {@link org.fressian.handlers.WriteHandler} to enable
* instances of {@code type} to be serialized to and deserialized from Fressian data.
*/
static void registerType(Class type, String tag, ReadHandler readHandler, WriteHandler writeHandler) {
FressianSerialization.registerType(type, tag, readHandler, writeHandler);
}