r1293@opsdev009 (orig r69993): cpiro | 2007-11-14 22:26:26 -0800
[amiethrift.git] / lib / erl / src / transport / tTransportFactory.erl
blob1c8ca614a180a8f6f1da935cb64319678b7321d3
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(tTransportFactory).
9 -include("oop.hrl").
10 -include("transport/tTransportFactory.hrl").
12 -behavior(oop).
14 -export([attr/4, super/0, inspect/1]).
16 -export([new/0, getTransport/2]).
18 %%%
19 %%% define attributes
20 %%% 'super' is required unless ?MODULE is a base class
21 %%%
23 ?ATTR_DUMMY.
25 %%%
26 %%% behavior callbacks
27 %%%
29 %%% super() -> SuperModule = atom()
30 %%% | none
32 super() ->
33 none.
35 %%% inspect(This) -> string()
37 inspect(_This) ->
38 "".
40 %%%
41 %%% class methods
42 %%%
44 new() ->
45 #?MODULE{}.
47 %%%
48 %%% instance methods
49 %%%
51 getTransport(_This, Trans) ->
52 Trans.