Nicola Ken Barozzi wrote:
>
> [EMAIL PROTECTED] wrote:
>
>> donaldp 2002/09/06 02:42:35
>>
> ...
>
>> Log:
>> Implement BlockContext.getResourceAsStream() so that a block is
>> capable of
>> locating resources in the sar file. This method will retrieve the
>> resource
>> regardless of where it is located.
>> This allows blocks to aquire resources regardless of where they
>> are located;
>> * in base directory
>> * in work directory
>> * in .sar file (in future)
>> * in some vfs (in future)
>
>
> This is a non-standard implementation of a Context...
>
> -1 *if* Blocks must aquire it using a cast, because it makes them
> unnecessarily dependent on Phoenix. Unnecessarily since this is a general
> concept.
>
> This can be done also as a Service, so it gets inserted as a
> dependency; if it must stay in the Context, it should be gotten from
> the context via a key that is declared in xinfo (I propose it to be
> standard).
>
Absolutely correct - there is not valid reason to extend context.
Steve.
--
Stephen J. McConnell
OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>