Make a simple hello world based on nino

This commit is contained in:
Jocelyn Fiat
2011-07-13 15:26:21 +02:00
parent bc98c5a317
commit 9d1fb56cc1
4 changed files with 121 additions and 40 deletions

View File

@@ -0,0 +1,48 @@
note
description: "Summary description for {GW_AGENT_APPLICATION}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
GW_AGENT_APPLICATION
inherit
GW_APPLICATION_IMP
create
make
feature {NONE} -- Implementation
make (a_callback: like callback)
-- Initialize `Current'.
do
callback := a_callback
end
feature {NONE} -- Implementation
callback: PROCEDURE [ANY, TUPLE [like new_request_context]]
-- Procedure called on `execute'
execute (ctx: like new_request_context)
-- Execute the request
do
callback.call ([ctx])
end
invariant
callback_attached: callback /= Void
note
copyright: "2011-2011, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
5949 Hollister Ave., Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end