blob: 8f9d3360557d691875e788eb7cd9976e40009f2c [file] [log] [blame]
%%%-------------------------------------------------------------------
%% @doc dubbo_service public API
%% @end
%%%-------------------------------------------------------------------
-module(dubbo_service_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
-export([register_type_list/0]).
-include("dubbo_service.hrl").
%%====================================================================
%% API
%%====================================================================
start(_StartType, _StartArgs) ->
register_type_list(),
dubbo_service_sup:start_link().
%%--------------------------------------------------------------------
stop(_State) ->
ok.
%%====================================================================
%% Internal functions
%%====================================================================
register_type_list()->
List = dubbo_service_type_list:get_list(),
lists:map(
fun({NativeType,ForeignType,Fields}) ->
dubbo_type_transfer:pre_process_typedef(NativeType,ForeignType,Fields)
end,List),
ok.