blob: 09ffb227529bf5d170a91d974c42f05bc7b00694 [file] [log] [blame]
Mark Slee7eb0d632007-03-01 00:00:27 +00001// Copyright (c) 2006- Facebook
2// Distributed under the Thrift Software License
3//
4// See accompanying file LICENSE or visit the Thrift site at:
5// http://developers.facebook.com/thrift/
6
Mark Slee456b7a82006-10-25 20:53:37 +00007package com.facebook.thrift.protocol;
8
9import com.facebook.thrift.transport.TTransport;
10
11/**
Aditya Agarwal5a429582007-02-06 02:51:15 +000012 * Factory interface for constructing protocol instances.
Mark Slee456b7a82006-10-25 20:53:37 +000013 *
14 * @author Mark Slee <mcslee@facebook.com>
Aditya Agarwal5a429582007-02-06 02:51:15 +000015 * @author Aditya Agarwal <aditya@facebook.com>
Mark Slee456b7a82006-10-25 20:53:37 +000016 */
17public interface TProtocolFactory {
Aditya Agarwal5a429582007-02-06 02:51:15 +000018 public TProtocol getProtocol(TTransport trans);
Mark Slee456b7a82006-10-25 20:53:37 +000019}