users@jersey.java.net

Re: [Jersey] _at_PostConstruct and _at_PreDestroy supported

From: Antonio Goncalves <antonio.mailing_at_gmail.com>
Date: Tue, 24 Feb 2009 10:14:48 +0100

Done : https://jersey.dev.java.net/issues/show_bug.cgi?id=229
Antonio

2009/2/24 Paul Sandoz <Paul.Sandoz_at_sun.com>

>
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>


-- 
--
Antonio Goncalves (antonio.goncalves_at_gmail.com)
Software architect
Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal