cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Run once code?
Date Wed, 05 Jun 2002 22:22:37 GMT
> From: Andrew Timberlake [mailto:andrew@timberlake.co.za]
> 
> 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

Add to the list - Poolable, Recyclable.

And Avalon has more other useful interfaces as well...

PS IIRC, ServerImpl implements ThreadSafe...

Vadim


> 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:andrew@timberlake.co.za]
> > > >
> > > > 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message