You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Décio Heinzelmann Luckow <de...@logocenter.com.br> on 2007/12/14 17:09:40 UTC

Destroy Of Interceptor

Hi All,

I´m studing Interceptors and I was looking for the local where Struts call
the destroy() method of Interceptor.

The init() method is called at the same time of construction of Interceptor,
but I can´t find where the destroy is called.

Someone know where its happen?

Tanks!

Décio Heinzelmann Luckow



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: RES: Destroy Of Interceptor

Posted by Dave Newton <ne...@yahoo.com>.
--- Décio Heinzelmann Luckow <de...@logocenter.com.br> wrote:
> How can I procede?

Patches can always be attached to JIRA tickets.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


RES: Destroy Of Interceptor

Posted by Décio Heinzelmann Luckow <de...@logocenter.com.br>.
Cool,

Can I collaborate with struts and do this correction?

I was reading the page 'http://struts.apache.org/dev/builds.html' to get the
information about struts subversion repository.

Could I send the correction by some way? Sure, I don´t have the write
permission.

How can I procede?


Decio Heinzelmann Luckow

 
-----Mensagem original-----
De: ted.husted@gmail.com [mailto:ted.husted@gmail.com] Em nome de Ted Husted
Enviada em: domingo, 16 de dezembro de 2007 08:27
Para: Struts Developers List
Assunto: Re: Destroy Of Interceptor

+1

I haven't traced the code, but I believe we redeploy the Interceptors
in dev mode, making a destroy option more important.

On Dec 14, 2007 7:46 PM, Tom Schneider <sc...@gmail.com> wrote:
>
> You know, I think you're right!  I searched the entire codebase (both
xwork
> and struts) and I have found nowhere where we call destroy() on the
> interceptors.  I guess that hasn't been an issue because if the destroy
> isn't being called, no big deal because your usually shutting down anyway.
>
> If we were to call destroy on the interceptors, I would expect it to
happen
> in the cleanup() method of Dispatcher.  This is where all the rest of the
> cleanup happens.  At runtime, the list of interceptors is stored in the
> ActionConfig object.  (part of xwork)  Perhaps it might be a good idea to
> submit a patch that fixes this issue. :) (hint, hint)
> Tom
>
>
> Décio Heinzelmann Luckow wrote:
> >
> > Hi All,
> >
> > I´m studing Interceptors and I was looking for the local where Struts
call
> > the destroy() method of Interceptor.
> >
> > The init() method is called at the same time of construction of
> > Interceptor,
> > but I can´t find where the destroy is called.
> >
> > Someone know where its happen?
> >
> > Tanks!
> >
> > Décio Heinzelmann Luckow
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Destroy-Of-Interceptor-tp14338766p14339890.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
HTH, Ted
 * <http://www.StrutsMentor.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Destroy Of Interceptor

Posted by Ted Husted <hu...@apache.org>.
+1

I haven't traced the code, but I believe we redeploy the Interceptors
in dev mode, making a destroy option more important.

On Dec 14, 2007 7:46 PM, Tom Schneider <sc...@gmail.com> wrote:
>
> You know, I think you're right!  I searched the entire codebase (both xwork
> and struts) and I have found nowhere where we call destroy() on the
> interceptors.  I guess that hasn't been an issue because if the destroy
> isn't being called, no big deal because your usually shutting down anyway.
>
> If we were to call destroy on the interceptors, I would expect it to happen
> in the cleanup() method of Dispatcher.  This is where all the rest of the
> cleanup happens.  At runtime, the list of interceptors is stored in the
> ActionConfig object.  (part of xwork)  Perhaps it might be a good idea to
> submit a patch that fixes this issue. :) (hint, hint)
> Tom
>
>
> Décio Heinzelmann Luckow wrote:
> >
> > Hi All,
> >
> > I´m studing Interceptors and I was looking for the local where Struts call
> > the destroy() method of Interceptor.
> >
> > The init() method is called at the same time of construction of
> > Interceptor,
> > but I can´t find where the destroy is called.
> >
> > Someone know where its happen?
> >
> > Tanks!
> >
> > Décio Heinzelmann Luckow
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Destroy-Of-Interceptor-tp14338766p14339890.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
HTH, Ted
 * <http://www.StrutsMentor.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [struts-dev] Destroy Of Interceptor

Posted by Dale Newfield <Da...@Newfield.org>.
Tom Schneider wrote:
> You know, I think you're right!  I searched the entire codebase (both xwork
> and struts) and I have found nowhere where we call destroy() on the
> interceptors.  I guess that hasn't been an issue because if the destroy
> isn't being called, no big deal because your usually shutting down anyway.

This might be why undeploying a struts webapp tends to fail (the struts 
core and plugin jars can't be removed because they're still in use).

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Destroy Of Interceptor

Posted by Tom Schneider <sc...@gmail.com>.
You know, I think you're right!  I searched the entire codebase (both xwork
and struts) and I have found nowhere where we call destroy() on the
interceptors.  I guess that hasn't been an issue because if the destroy
isn't being called, no big deal because your usually shutting down anyway.

If we were to call destroy on the interceptors, I would expect it to happen
in the cleanup() method of Dispatcher.  This is where all the rest of the
cleanup happens.  At runtime, the list of interceptors is stored in the
ActionConfig object.  (part of xwork)  Perhaps it might be a good idea to
submit a patch that fixes this issue. :) (hint, hint)
Tom


Décio Heinzelmann Luckow wrote:
> 
> Hi All,
> 
> I´m studing Interceptors and I was looking for the local where Struts call
> the destroy() method of Interceptor.
> 
> The init() method is called at the same time of construction of
> Interceptor,
> but I can´t find where the destroy is called.
> 
> Someone know where its happen?
> 
> Tanks!
> 
> Décio Heinzelmann Luckow
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Destroy-Of-Interceptor-tp14338766p14339890.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org