uCosminexus Application Server, API Reference Guide

[Contents][Index][Back][Next]

2.2 javax.annotation package

The following table lists the annotations included in the javax.annotation package:

List of annotations
Annotation name Functionality
@PostConstruct Specify the method that is called back immediately after the Servlet and Enterprise Bean instance are generated.
@PreDestroy Specify the method that is called back immediately before deleting the Servlet, Enterprise Bean instance.
@Resource Declare the resource reference.
@Resources Specify multiple @Resources.

The following subsections describe the details of each annotation.

Organization of this section
2.2.1 @PostConstruct
2.2.2 @PreDestroy
2.2.3 @Resource
2.2.4 @Resources