Permalink
Browse files

Turned the registry into an OTP app

  • Loading branch information...
1 parent 61c53cc commit 3b51b0ccdd6285be9ffda3c577364a7218a0cb90 @0x6e6562 0x6e6562 committed Jul 12, 2009
Showing with 14 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +13 −0 src/rfc4627_jsonrpc.erl
View
@@ -9,7 +9,7 @@ ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall +debug_info # +native -v
DIST_DIR=dist
SIGNING_KEY_ID=F8D7D525
VERSION=1.2.0
-PACKAGE_NAME=erlang-rfc4627
+PACKAGE_NAME=rfc4627_jsonrpc
EZ_NAME=$(PACKAGE_NAME).ez
ifeq ($(shell uname -s),Darwin)
@@ -218,6 +218,9 @@
-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]).
@@ -227,6 +230,16 @@
-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() ->

0 comments on commit 3b51b0c

Please sign in to comment.