avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces ApplicationContext.java Kernel.java
Date Fri, 06 Sep 2002 15:09:07 GMT


Nicola Ken Barozzi wrote:

>
> Nicola Ken Barozzi wrote:
>
>>
>> donaldp@apache.org 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).
>
>
> I really didn't mean to veto formally, just regard this as an opinion 
> on how it could also be done...
>

In which case I'll veto this formally.

-1 to the addition of BlockContext.getResourceAsStream()

This is not 2 -1s on BlockContext (there is also the requestShutdown 
method addition that has not been rectified).

Cheers, Steve.


-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net




--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message