avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: [Proposal] Distilling common Context Attributes
Date Tue, 27 Aug 2002 21:28:38 GMT
Im not so sure it is to use "context" as the namespace -esepcially given that 
these attributes are scoped. The way these three are named in what I am doing 
is the following


And it cascades up. This allows much more scalable usage patterns and it also 
uses the same terminology as in Phoenix, TC, and other containers.

On Wed, 28 Aug 2002 02:04, Berin Loritsch wrote:
> I would like to propose a minimum set of attributes that all containers
> need to support, which will provide some guarantees for the components
> that need them.  So far, I only have three that would fit the bill:
> 1) "context:dir" A java.io.File representing the context directory
> available
>    to the component.  Sort of a "home" directory.
> 2) "context:scratch" A java.io.File representing the context directory
>    that the component can use as a hash area--nothing permanent
> guaranteed,
>    but useful for dynamic compilation, cache entries, etc.
> 3) "context:classloader" A java.lang.ClassLoader that the component can
>    use to create objects or child components with.
> The names are of course up for debate, but the concepts are fairly
> constant.
> I would like a standard set of names so that the components like
> SourceResolver
> can implement a "context:" protocol that maps to the home dir easily.
> It
> will also help with the cache implementations, et. al.
> Thoughts?
> "They that give up essential liberty to obtain a little temporary safety
>  deserve neither liberty nor safety."
>                 - Benjamin Franklin


Peter Donald
A right is not what someone gives you; it's what no one can take from you. 
        -- Ramsey Clark

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

View raw message