To answer my own question for those who might not want to read up on
Avalon before using it. Never mind that that is a stupid idea at the
outset.

Here is a snippet from the documentation:
* org.apache.avalon.framework.thread.SingleThreaded
  o Not thread-safe or reusable.
  o When no lifestyle interface is supplied, this is assumed.
  o A brand new instance is created every time the Component is
requested.
  o Creation and initialization is delayed until you request the
Component.       <== IMPORTANT

* org.apache.avalon.framework.thread.Threadsafe
  o Component is fully reentrant, and complies with all principles of
thread safety.
  o One instance is created and shared with all Composables that request
it.
  o Creation and initialization is done when ComponentHandler is
created.         <== IMPORTANT

Thanks for your help anyway Vadim !!!

Andrew


On Wed, 2002-06-05 at 22:31, Andrew Timberlake wrote:
> Vadim
> 
> Configurable didn't help. I added ThreadSafe and then it worked.
> I'm new to Avalon. Does this allow it to be created globally instead of
> as it is needed maybe?
> 
> Andrew
> 
> On Wed, 2002-06-05 at 21:50, Vadim Gritsenko wrote:
> > > From: Andrew Timberlake [mailto:[EMAIL PROTECTED]]
> > > 
> > > Vadim
> > > 
> > > I have created a component and it seems to be identified and loaded in
> > > core.log
> > > The initialize method is not called.
> > > I have only implemented Initializable and no other work interfaces.
> > > Is this correct?
> > > Should I be doing something else?
> > 
> > Implement Component also. If does not help... But it should work... Add
> > Configurable.
> > 
> > Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to