Nicola Ken Barozzi wrote:
> 
> Peter Donald wrote:
> 
>> On Tue, 27 Aug 2002 17:28, Nicola Ken Barozzi wrote:
>> ... On The need for Context subclasses ...
>>
>>> I don't understand, sorry.
>>> As I said above, any cast to a context is a big mistake IMO.
>>> Please explain why you nead methods.
>>
>>
>>
>> The explanation to this is no different from the last two times I have 
>> explained this exact same point to you. I thought you conceded it was 
>> necessary last time? Or have you come up with a solution for the problem?
> 
> 
> Oh, I forgot this.
> http://marc.theaimsgroup.com/?l=avalon-dev&m=102559159916800&w=2
> 
> It seems to indicate that there is no real need for initial cast from 
> the Context acquired.
...

from the example in containerkit:
"
     <context type="MyContextInterface">
         <!--
         Declaration of an entry in a context object, the "key" is
         the key used by a component to locate the context entry,
         the "type" is the classname of value (typically an interface)
         or primative type.  The default value is java.lang.String.
         The "optional" attribute is a boolean value derived from the
         TRUE or FALSE that indicates if the context value must be
         provided or not (default is FALSE).
         -->
         <entry key="base" type="java.io.File"/>
         <entry key="mode" type="java.lang.Object" optional="TRUE"/>
     </context>
"

I think we agree then.

-- 
Nicola Ken Barozzi                   [EMAIL PROTECTED]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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

Reply via email to