Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 99363 invoked from network); 3 Sep 2009 13:55:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 13:55:50 -0000 Received: (qmail 74405 invoked by uid 500); 3 Sep 2009 13:55:49 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 74350 invoked by uid 500); 3 Sep 2009 13:55:49 -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 74340 invoked by uid 99); 3 Sep 2009 13:55:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 13:55:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 209.85.218.205 as permitted sender) Received: from [209.85.218.205] (HELO mail-bw0-f205.google.com) (209.85.218.205) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 13:55:39 +0000 Received: by bwz1 with SMTP id 1so1531457bwz.22 for ; Thu, 03 Sep 2009 06:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Kvz5m+tWh86rE2bQga9nZpXOpxuvjgn6zDA+YJkoSpQ=; b=lZryyq6dMFQEXdBJKwFWneO0mBLqu8P4jeM8VAyKJChXt/sF0+p809oGJN03ivawmc sGAOhUubSgoijZ6DcaQX53c9VMarNxsj0aESJ6EoNVDQb3MlbuW8WZ2wmxjpJO7KWaPo ID+Y2Xm4SoAf/vvLViROu5dkeE5wFRuWo/U5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZcgfgietajOjtDtWeWSMEE4VaU7eI2wfAb1AhBadFiNuq3WaGzPwaoJGAsp+LLwNU+ 47QK4rM5I6lfZdS/q5EvQZyu+njxUCKx6ryvdkcxe2R2Ob2KV0NyNwdAHZKnZOGg89gj XzUE17LEpnkYu37+qc+B96Ls78XbvmfdN9d9w= MIME-Version: 1.0 Received: by 10.223.15.17 with SMTP id i17mr3981901faa.75.1251986118504; Thu, 03 Sep 2009 06:55:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Sep 2009 15:55:18 +0200 Message-ID: Subject: Re: Packages exported by fileinstall From: Guillaume Nodet To: dev Content-Type: multipart/alternative; boundary=001517473644db704e0472acbb8d X-Virus-Checked: Checked by ClamAV on apache.org --001517473644db704e0472acbb8d Content-Type: text/plain; charset=ISO-8859-1 So I've changed fileinstall to optionally import the log service package instead of exporting it. I also have a local modification where I moved the classes in different packages: * interfaces that are currently in o.a.f.fileinstall.listener move to o.a.f.fileinstall * all other classes move to o.a.f.fileinstall.internal * the bundle exports o.a.f.fileinstall package, but not the .internal one which contain al the implementation classes I think this would be cleaner and more inlined with best practices. Unless there's a problem with that, I'm planning to commit that change soon. On Thu, Sep 3, 2009 at 10:32, Guillaume Nodet wrote: > Btw, I also wonder about the need to export the > org.apache.felix.fileinstall package, as this one only contains > implementation classes and should be private imho. Have anyone seen a need > to really export this package ? > > > On Thu, Sep 3, 2009 at 10:29, Guillaume Nodet wrote: > >> Fileinstall exports the org.osgi.service.cm and org.osgi.service.log >> packages. >> I wonder if this would make more sense to make them optional import and >> make sure the code can run if those are not wired. >> As a side effect would also reduce the size of the jar and simplify the >> resolution process (I don't having having bundles exporting the same package >> really helps ...) >> Thoughts ? >> >> -- >> Cheers, >> Guillaume Nodet >> ------------------------ >> Blog: http://gnodet.blogspot.com/ >> ------------------------ >> Open Source SOA >> http://fusesource.com >> >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --001517473644db704e0472acbb8d--