本文整理汇总了Java中com.caucho.hessian.io.Serializer类的典型用法代码示例。如果您正苦于以下问题:Java Serializer类的具体用法?Java Serializer怎么用?Java Serializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Serializer类属于com.caucho.hessian.io包,在下文中一共展示了Serializer类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: writeObject
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
/**
* Writes any object to the output stream.
*/
public void writeObject(Object object)
throws IOException
{
if (object == null) {
writeNull();
return;
}
Serializer serializer;
serializer = _serializerFactory.getSerializer(object.getClass());
serializer.writeObject(object, this);
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:BurlapOutput.java
示例2: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see com.caucho.hessian.io.SerializerFactory#getSerializer(java.lang.Class)
*/
@Override
public Serializer getSerializer ( Class cl ) throws HessianProtocolException {
Serializer serializer = super.getSerializer(cl);
if ( serializer instanceof WriteReplaceSerializer ) {
return UnsafeSerializer.create(cl);
}
return serializer;
}
开发者ID:mbechler,项目名称:marshalsec,代码行数:15,代码来源:HessianBase.java
示例3: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(@SuppressWarnings("rawtypes") Class cl) throws HessianProtocolException {
if(BigDecimal.class.isAssignableFrom(cl)) {
return bigDecimalSerializer;
}
return null;
}
开发者ID:hailin0,项目名称:pagecache-parent,代码行数:8,代码来源:HessionBigDecimalSerializerFactory.java
示例4: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(@SuppressWarnings("rawtypes") Class cl) throws HessianProtocolException {
if(SoftReference.class.isAssignableFrom(cl)) {
return beanSerializer;
}
return null;
}
开发者ID:hailin0,项目名称:pagecache-parent,代码行数:8,代码来源:HessionSoftReferenceSerializerFactory.java
示例5: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(@SuppressWarnings("rawtypes") Class cl) throws HessianProtocolException {
if(BigDecimal.class.isAssignableFrom(cl)) {
return BIG_DECIMAL_SERIALIZER;
}
return null;
}
开发者ID:qiujiayu,项目名称:AutoLoadCache,代码行数:8,代码来源:HessionBigDecimalSerializerFactory.java
示例6: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(@SuppressWarnings("rawtypes") Class cl) throws HessianProtocolException {
if(WeakReference.class.isAssignableFrom(cl)) {
return beanSerializer;
}
return null;
}
开发者ID:qiujiayu,项目名称:AutoLoadCache,代码行数:8,代码来源:WeakReferenceSerializerFactory.java
示例7: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
public Serializer getSerializer(Class cl) throws HessianProtocolException {
if (PersistentCollection.class.isAssignableFrom(cl)) {
return new HibernateSerializer();
}
return super.getSerializer(cl);
}
开发者ID:kane-chen,项目名称:dubbo-demo,代码行数:10,代码来源:HibernateSerializerFactory.java
示例8: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(Class cls) throws HessianProtocolException {
Serializer serializer = null;
if (FaultDetail.class.isAssignableFrom(cls)) {
serializer = new FaultDetailSerialiser(transcriptionParams);
}
return serializer;
}
开发者ID:betfair,项目名称:cougar,代码行数:12,代码来源:FaultDetailSerialiserFactory.java
示例9: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(Class cls) throws HessianProtocolException {
Serializer serializer = null;
if (Transcribable.class.isAssignableFrom(cls)) {
serializer = new TranscribableSerialiser(transcriptionParams, client);
}
return serializer;
}
开发者ID:betfair,项目名称:cougar,代码行数:12,代码来源:TranscribableSerialiserFactory.java
示例10: getSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getSerializer(Class cls) throws HessianProtocolException {
if (cls != null && TranscribableEnum.class.isAssignableFrom(cls)) {
return new TranscribableEnumSerializer(cls, transcriptionParams);
}
return null;
}
开发者ID:betfair,项目名称:cougar,代码行数:9,代码来源:EnumSerialiserFactory.java
示例11: getObjectSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
@Override
public Serializer getObjectSerializer() {
return this;
}
开发者ID:hailin0,项目名称:pagecache-parent,代码行数:5,代码来源:SoftReferenceSerializer.java
示例12: addSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
public static void addSerializer(Class<?> cl, Serializer serializer) {
extFactory.addSerializer(cl, serializer);
}
开发者ID:5waynewang,项目名称:commons-jkit,代码行数:4,代码来源:Hessian2Serialization.java
示例13: getObjectSerializer
import com.caucho.hessian.io.Serializer; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see com.caucho.hessian.io.SerializerFactory#getObjectSerializer(java.lang.Class)
*/
@Override
public Serializer getObjectSerializer ( Class<?> cl ) throws HessianProtocolException {
return super.getObjectSerializer(cl);
}
开发者ID:mbechler,项目名称:marshalsec,代码行数:10,代码来源:HessianBase.java
注:本文中的com.caucho.hessian.io.Serializer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论