Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A61FFDD71 for ; Mon, 2 Jul 2012 19:12:12 +0000 (UTC) Received: (qmail 3433 invoked by uid 500); 2 Jul 2012 19:12:12 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 3401 invoked by uid 500); 2 Jul 2012 19:12:12 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 3392 invoked by uid 99); 2 Jul 2012 19:12:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 19:12:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karlpauls@gmail.com designates 209.85.161.177 as permitted sender) Received: from [209.85.161.177] (HELO mail-gg0-f177.google.com) (209.85.161.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 19:12:07 +0000 Received: by ggcs5 with SMTP id s5so5489943ggc.22 for ; Mon, 02 Jul 2012 12:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=jDyB/xfkw4i1Rn+KB9B+JaSSgNbSgEOLj3/pH2yvlvs=; b=Lv4zlu0FL3nlKkTEEP9gHLoDde/27Djq9ZJjvcwlXI+S7hr62yEbCd4P8X/BMO8/fp mZEQN8oiJmKlwbtVtonQFQNCo+XweCmPHG5l9I6QBh46t3WAkzC4mFcF4N6XVi8dqZ/U nsyiy3YLGaZHnIpUSE6HUqOvxn5AGZeiUtENGwKuLUAgwezq/Y4oGDAsFT/4tSLVgbw0 hJIJ6WM55wRbvo1vw+NytXOqiDNRGrSFhX5bkJw0cHgAvquEVG1KTgaP7bBCJx3JiLI2 tF5xDu/H9YYKQV5dDDISlTWzmWw9hJAukBINmxk/AYt+qVu6KHOVLyV1hkVyeDm3q43j A62A== Received: by 10.60.10.99 with SMTP id h3mr15033198oeb.72.1341256305332; Mon, 02 Jul 2012 12:11:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.124.106 with HTTP; Mon, 2 Jul 2012 12:11:25 -0700 (PDT) In-Reply-To: <4FF1D04A.1040309@netbauds.net> References: <4FF1D04A.1040309@netbauds.net> From: Karl Pauls Date: Mon, 2 Jul 2012 21:11:25 +0200 Message-ID: Subject: Re: Injecting resources / Virtual Bundles ? To: users@felix.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org If deploy time is good enought, you might consider using a custom urlhandler. regards, Karl On Mon, Jul 2, 2012 at 6:46 PM, Darryl Miles wrote: > > > Does anyone have any pointers to an example of Felix using virtual bundles. > > > > I would like to inject resources (and maybe the option to inject *.class) > into the visible classpath of a bundle. I am not looking to do this > dynamically after the bundle is started so whatever decisions are made would > happen at resolution time. > > For example lets take the resource files: > > /META-INF/services/org.apache.commons.logging.LogFactory > /commons-logging.properties > > These files can be considered virtual files meaning I shall write some code > to produce the content on demand (either as a real file or an InputStream). > These files will not change their content for the lifetime of the bundle > (however would there be implications if they did? assuming the application > was aware of this). > > > > Darryl > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > -- Karl Pauls karlpauls@gmail.com http://twitter.com/karlpauls http://www.linkedin.com/in/karlpauls https://profiles.google.com/karlpauls --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org