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 
);
}



Massimo Lusetti wrote:
On Sat, Mar 29, 2008 at 10:38 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote:

So.. you know you could get the AssetSource, and create the desired
 Asset directly, whenever you like..

You mean AssetFactory which compose the structure behind AssetSource service.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to