[jbossws-issues] [JBoss JIRA] Created: (JBWS-3356) Fix PostConstruct & PreDestroy implementation for JAXWS endpoints & handlers

Richard Opalka (JIRA) jira-events at lists.jboss.org
Wed Sep 7 07:11:26 EDT 2011


Fix PostConstruct & PreDestroy implementation for JAXWS endpoints & handlers
----------------------------------------------------------------------------

                 Key: JBWS-3356
                 URL: https://issues.jboss.org/browse/JBWS-3356
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Richard Opalka
             Fix For: jbossws-native-4.1, jbossws-cxf-4.1


JSR 316: JavaEE Platform Specification
Section 5.2.5: Annotations and Deployment Descriptors
---
In some cases a class may need to perform initialization of its own after all
resources have been injected. To support this case, one method of the class may be
annotated with the PostConstruct annotation (or, equivalently, specified using
the post-construct entry of a deployment descriptor). This method will be called
after all injections have occured and before the class is put into service. This
method will be called even if the class doesn't request any resources to be
injected. Similarly, for classes whose lifecycle is managed by the container, the
PreDestroy annotation (or, equivalently, the pre-destroy entry of a deployment
descriptor) may be applied to one method that will be called when the class is
taken out of service and will no longer be used by the container. Each class in a
class hierarchy may have PostConstruct and PreDestroy methods. The order in
which the methods are called matches the order of the class hierarchy with
methods on a superclass being called before methods on a subclass.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list