On Tue, Apr 1, 2008 at 6:32 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote:
> Well, I can't remember who wanted this functionality, of being able to
> generate assets dynamically. That is actually done through the
> AssetSource, which is backed by a list of AssetFactories. So the could
> would look something like the following:
>
>
> @Inject
> private AssetSource source;
>
> public Asset getMyDynamicAsset() {
> return source.getAsset( null, "context:/blahblah"+blahblah+"blah",
> null );
>
> }
Well the asset is actually outiside the context path and outisde the
classpath. The asset is simply on the filesystem.
Maybe you're right in term that this reqeust is too specific but it
could be useful to have a FilesystemAssetFactory configurable via a
Symbol
--
Massimo
http://meridio.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]