Permalink
Browse files

Sorted out who is the app and who is not

  • Loading branch information...
1 parent 9d4c2e1 commit b4c78eed4997363090389fdba90bdcd7b1b0969d @0x6e6562 0x6e6562 committed Jul 24, 2009
Showing with 2 additions and 16 deletions.
  1. +0 −13 src/rfc4627_jsonrpc.erl
  2. +2 −3 src/rfc4627_jsonrpc_app.erl
View
@@ -218,9 +218,6 @@
-include("rfc4627.hrl").
-include("rfc4627_jsonrpc.hrl").
--behaviour(application).
--export([start/2,stop/1]).
-
-export([start/0, start_link/0]).
-export([lookup_service/1, register_service/2]).
@@ -230,16 +227,6 @@
-define(SERVICE, ?MODULE).
-%% @spec start(_Type, _StartArgs) -> ServerRet
-%% @doc application start callback for mod_http.
-start(_Type, _StartArgs) ->
- start_link().
-
-%% @spec stop(_State) -> ServerRet
-%% @doc application stop callback for mod_http.
-stop(_State) ->
- ok.
-
%% @spec () -> {ok, pid()} | {error, {already_started, pid()}}
%% @doc Starts the registry process.
start() ->
@@ -24,10 +24,9 @@
%%
-module(rfc4627_jsonrpc_app).
--export([start/0, stop/0, start/2, stop/1]).
+-export([start/2, stop/1]).
-start() -> application:start(?MODULE).
-stop() -> application:stop(?MODULE).
+-behaviour(application).
start(normal, []) ->
rfc4627_jsonrpc_sup:start_link().

0 comments on commit b4c78ee

Please sign in to comment.