felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Pauls <karlpa...@gmail.com>
Subject Re: Injecting resources / Virtual Bundles ?
Date Mon, 02 Jul 2012 19:11:25 GMT
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
<darryl-mailinglists@netbauds.net> 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


Mime
View raw message