> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] 
> 
> 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.
> 
> Hmmm... What's the difference with context:scratch?
> Persistence between invocations?
> 
> > 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.
> 
> context:tmp
> context:temp
> context:tempdir
> context:temp.dir


The diference between scratch and dir is like the difference between
a Servlet Context's root directory and scratch area.

They can be in completely diferent areas of the hard disk.  For
instance,
the "context:dir" could be mapped to "../components/${component-name}"
while "context:scratch" would be mapped to
"/tmp/${app}/${component-name}".

The two directories do not have to be related to each other at all.


> > 3) "context:classloader" A java.lang.ClassLoader that the 
> component can
> >    use to create objects or child components with.
> 
> Ok.
> 
> 
> > 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?
> 
> +1


"context:temp.dir" would be a better name for "context:scratch"


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

Reply via email to