Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 24935 invoked from network); 4 May 2010 14:08:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 14:08:12 -0000 Received: (qmail 28036 invoked by uid 500); 4 May 2010 14:08:11 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 28002 invoked by uid 500); 4 May 2010 14:08:11 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 27994 invoked by uid 99); 4 May 2010 14:08:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 14:08:11 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.49] (HELO mail-pw0-f49.google.com) (209.85.160.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 14:08:07 +0000 Received: by pwj3 with SMTP id 3so1803451pwj.22 for ; Tue, 04 May 2010 07:07:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.25.30 with SMTP id c30mr5894392wfj.240.1272982066381; Tue, 04 May 2010 07:07:46 -0700 (PDT) Received: by 10.231.12.129 with HTTP; Tue, 4 May 2010 07:07:46 -0700 (PDT) In-Reply-To: <4BE01C17.30604@ungoverned.org> References: <4BDF2160.4030506@ungoverned.org> <4BDF3F3C.7010905@ungoverned.org> <4BE01C17.30604@ungoverned.org> Date: Tue, 4 May 2010 15:07:46 +0100 Message-ID: Subject: Re: [gogo] Parameter annotations (Re: svn commit: r940514 - in /felix/trunk/gogo/runtime/src/main/java/org/osgi/service/command: Flag.java Option.java) From: Derek Baum To: dev@felix.apache.org Content-Type: multipart/alternative; boundary=001636e90995df42ad0485c53bb9 --001636e90995df42ad0485c53bb9 Content-Type: text/plain; charset=ISO-8859-1 I'm interested to see how your experiment develops. Meanwhile, an alternative approach to writing RFC-147 commands is presented here: https://www.osgi.org/bugzilla/show_bug.cgi?id=53 I'm happy to donate this 500-line Options class to Felix, if there is any interest. Derek On 4 May 2010 14:07, Richard S. Hall wrote: > > > At this point, I am just trying to get something to work. I had originally > tried to use the approach used in Karaf to make commands, but it didn't feel > completely right to me. I talked with Peter and he said his vision was that > people wouldn't implement commands as Gogo Functions, but just as methods on > an object. So, I then started to think about how to refactor the approach > using methods, but realized it would need to have some help from the Gogo > runtime to make it work. So, that's what this experiment is about. > > There probably will be some balancing act between making it usable for > building command-line commands vs keeping it general purpose and UI > independent. We'll see as we go. > > > -> richard > --001636e90995df42ad0485c53bb9--