dev@javaserverfaces.java.net

RE: Re: PostConstruct/PreDestroy

From: Ed Burns <ed.burns_at_sun.com>
Date: Tue, 17 Jan 2006 08:50:22 -0800

>>>>> On Fri, 13 Jan 2006 12:19:38 -0500, jacob_at_hookom.net said:

JH> Maybe I'm confused-- but there was the injection manager, then there
JH> was the PostConstruct/PreDestroy code within the bean
JH> manager/ApplicationAssociate, maybe I've been looking at the wrong
JH> version.
JH> https://javaserverfaces-sources.dev.java.net/source/browse/javaserverfaces-sources/jsf-ri/src/com/sun/faces/application/ApplicationAssociate.java?rev=1.24&view=markup

JH> The 'handlePostConstruct' method... would simply involve a static
JH> check for the existence of
JH> Class.forName("javax.annotation.PostConstruct")

Why bother with the reflection check when the lists will simply be empty
in the case when there is no injection manager?

Ed


-- 
| ed.burns_at_sun.com  | {home: 407 869 9587, office: 408 884 9519 OR x31640}
| homepage:         | http://purl.oclc.org/NET/edburns/
| aim: edburns0sunw | iim: ed.burns_at_sun.com