r1295@opsdev009 (orig r69995): cpiro | 2007-11-14 22:26:28 -0800
[amiethrift.git] / lib / erl / src / transport / tBufferedTransportFactory.erl
blobde2570e155e099a45d75722bc5e7ae74dc35f29f
1 %%% Copyright (c) 2007- 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/
7 -module(tBufferedTransportFactory).
9 -include("oop.hrl").
10 -include("transport/tBufferedTransport.hrl").
11 -include("transport/tBufferedTransportFactory.hrl").
13 -behavior(oop).
15 -export([attr/4, super/0, inspect/1]).
17 -export([new/0, getTransport/2]).
19 %%%
20 %%% define attributes
21 %%% 'super' is required unless ?MODULE is a base class
22 %%%
24 ?ATTR_DUMMY.
26 %%%
27 %%% behavior callbacks
28 %%%
30 %%% super() -> SuperModule = atom()
31 %%% | none
33 super() ->
34 tTransportFactory.
36 %%% inspect(This) -> string()
38 inspect(_This) ->
39 "".
41 %%%
42 %%% class methods
43 %%%
45 new() ->
46 Super = (super()):new(),
47 #?MODULE{super=Super}.
49 %%%
50 %%% instance methods
51 %%%
53 getTransport(_This, Trans) ->
54 oop:start_new(tBufferedTransport, [Trans]).