Package com.caucho.hessian.io

Examples of com.caucho.hessian.io.SerializerFactory


  }

  public HessianSessionSerializer(OutputStream os,
                                  ClassLoader loader)
  {
    this(os, new SerializerFactory(loader));
  }
View Full Code Here


  public SessionSerializer createSessionSerializer(OutputStream os)
    throws IOException
  {
    if (_isHessianSerialization) {
      if (_hessianFactory == null)
        _hessianFactory = new SerializerFactory(getClassLoader());
     
      HessianSessionSerializer ser;
     
      ser = new HessianSessionSerializer(os, _hessianFactory);
     
View Full Code Here

      dis.setDepth(2);
      is = dis;
    }
 
    _in = new Hessian2Input(is);
    _in.setSerializerFactory(new SerializerFactory(loader));
  }
View Full Code Here

   * Gets the serializer factory.
   */
  public SerializerFactory getSerializerFactory()
  {
    if (_serializerFactory == null)
      _serializerFactory = new SerializerFactory();

    return _serializerFactory;
  }
View Full Code Here

  {
    try {
      Hessian2Input in = new Hessian2Input(is);
      AbstractHessianOutput out;

      SerializerFactory serializerFactory = getSerializerFactory();

      in.setSerializerFactory(serializerFactory);

      int code = in.read();
View Full Code Here

   * Gets the serializer factory.
   */
  public SerializerFactory getSerializerFactory()
  {
    if (_serializerFactory == null)
      _serializerFactory = new SerializerFactory();

    return _serializerFactory;
  }
View Full Code Here

        NullOutputStream os = new NullOutputStream();

        Hessian2Input in = new Hessian2Input(is);
        AbstractHessianOutput out;

        SerializerFactory serializerFactory = getSerializerFactory();

        in.setSerializerFactory(serializerFactory);

        int code = in.read();
View Full Code Here

     */
    public static SerializerFactory createFactory(
            String[] factoryNames,
            EntityResolver resolver) {

        SerializerFactory factory = new SerializerFactory();

        if (factoryNames != null && factoryNames.length > 0) {

            for (String factoryName : factoryNames) {

                try {
                    factory.addFactory(loadFactory(factoryName, resolver));
                }
                catch (Exception e) {
                    throw new CayenneRuntimeException("Error configuring factory class "
                            + factoryName, e);
                }
View Full Code Here

        DataChannel channel = runtime.getChannel();

        RemoteService service = runtime.getInjector().getInstance(RemoteService.class);

        SerializerFactory serializerFactory = HessianConfig.createFactory(
                HessianService.SERVER_SERIALIZER_FACTORIES,
                channel.getEntityResolver());

        setAPIClass(RemoteService.class);
        setSerializerFactory(serializerFactory);
View Full Code Here

    /**
     * Gets the serializer factory.
     */
    public SerializerFactory getSerializerFactory() {
        if (_serializerFactory == null)
            _serializerFactory = new SerializerFactory();

        return _serializerFactory;
    }
View Full Code Here

TOP

Related Classes of com.caucho.hessian.io.SerializerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.