users@jersey.java.net

Re: [Jersey] _at_PostConstruct and _at_PreDestroy supported

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 24 Feb 2009 09:51:18 +0100

On Feb 24, 2009, at 9:38 AM, Antonio Goncalves wrote:

> Hi Paul,
>
> I am testing the lifecycle management of a resource and added
> @PostConstruct and @PreDestroy callback methods. It only works (i.e
> methods get called) only if they are public. Which is not the way it
> works with other EE specifications (JPA, EJB, WS...) where callback
> methods can have any visibility (private is a common case because
> sometimes you don't want initialization methods to be invoked).
>
> Is that a normal or is it a bug ?
>

Tis a bug. Could you log an issue?

Thanks,
Paul.