Java 类com.google.gwt.user.client.rpc.impl.Serializer 实例源码

项目:gwt-syncproxy    文件:SyncClientSerializationStreamWriter.java   
public SyncClientSerializationStreamWriter(Serializer serializer,
        String moduleBaseURL, String serializationPolicyStrongName,
        SerializationPolicy serializationPolicy, RpcToken rpcToken) {
    this.serializer = serializer;
    this.moduleBaseURL = moduleBaseURL;
    this.serializationPolicyStrongName = serializationPolicyStrongName;
    this.serializationPolicy = serializationPolicy;
    this.rpcToken = rpcToken;
    if (rpcToken != null) {
        addFlags(FLAG_RPC_TOKEN_INCLUDED);
    }
}
项目:putnami-web-toolkit    文件:CommandServiceCompositeSerializer.java   
@Override
public String getSerializationSignature(Class<?> clazz) {
    for (Serializer serializer : this.serializers) {
        String signature = serializer.getSerializationSignature(clazz);
        if (signature != null) {
            return signature;
        }
    }
    return null;
}
项目:putnami-web-toolkit    文件:CommandServiceCompositeSerializer.java   
@Override
public Object instantiate(SerializationStreamReader stream, String typeSignature) throws SerializationException {
    for (Serializer serializer : this.serializers) {
        try {
            Object o = serializer.instantiate(stream, typeSignature);
            if (o != null) {
                return o;
            }
        } catch (SerializationException e) {
            continue;
        }
    }
    throw new SerializationException(typeSignature);
}
项目:putnami-web-toolkit    文件:CommandServiceCompositeSerializer.java   
@Override
public void serialize(SerializationStreamWriter stream, Object instance, String typeSignature)
    throws SerializationException {
    for (Serializer serializer : this.serializers) {
        try {
            serializer.serialize(stream, instance, typeSignature);
            return;
        } catch (SerializationException e) {
            continue;
        }
    }
    throw new SerializationException(typeSignature);
}
项目:putnami-web-toolkit    文件:CommandServiceCompositeSerializer.java   
@Override
public void deserialize(SerializationStreamReader stream, Object instance, String typeSignature)
    throws SerializationException {
    for (Serializer serializer : this.serializers) {
        try {
            serializer.deserialize(stream, instance, typeSignature);
            return;
        } catch (SerializationException e) {
            continue;
        }
    }
    throw new SerializationException(typeSignature);
}
项目:putnami-web-toolkit    文件:CommandParam.java   
public CommandParam(boolean lazy, boolean quiet, Serializer serializer, List params, List callbacks) {
    super();
    this.lazy = lazy;
    this.quiet = quiet;
    this.serializer = serializer;
    this.params = params;
    this.callbacks = callbacks;
}
项目:unitimes    文件:GwtRpcProxy.java   
public GwtRpcProxy(String moduleBaseURL, String remoteServiceRelativePath, String serializationPolicyName, Serializer serializer) {
    super(moduleBaseURL, remoteServiceRelativePath, serializationPolicyName, serializer);
}
项目:unitime    文件:GwtRpcProxy.java   
public GwtRpcProxy(String moduleBaseURL, String remoteServiceRelativePath, String serializationPolicyName, Serializer serializer) {
    super(moduleBaseURL, remoteServiceRelativePath, serializationPolicyName, serializer);
}
项目:putnami-web-toolkit    文件:CommandServiceCompositeSerializer.java   
public CommandServiceCompositeSerializer(Collection<Serializer> serializers) {
    this.serializers = serializers;
}
项目:putnami-web-toolkit    文件:CommandSerializationStreamFactory.java   
public CommandSerializationStreamFactory(Serializer serializer, String moduleBaseURL) {
    super();
    this.serializer = serializer;
    this.moduleBaseURL = moduleBaseURL;
}
项目:putnami-web-toolkit    文件:CommandParam.java   
public Serializer getSerializer() {
    return this.serializer;
}
项目:gwt-storage    文件:StorageSerializationStreamWriter.java   
public StorageSerializationStreamWriter(Serializer serializer) {
  this.serializer = serializer;
}
项目:gwt-comet    文件:CometSerializer.java   
protected abstract Serializer getSerializer();