アノテーションの定義内容を更新した場合は,次のどちらかの方法でアプリケーションに反映できます。
表11-16 各アノテーションのリロード機能での更新可否
アノテーション名 | 更新可否 |
---|---|
@PostConstruct | ○ |
@PreDestroy | ○ |
@Resource | × |
@Resources | × |
@RunAs | × |
@DeclareRoles | ○ |
@RolesAllowed | × |
@PermitAll | ○ |
@DenyAll | ○ |
@Stateless | × |
@Stateful | × |
@Init | ○ |
@Remove | ○ |
@Remote | × |
@Local | × |
@RemoteHome | × |
@LocalHome | × |
@TransactionManagement | ○ |
@TransactionAttribute | ○ |
@PostActivate | ○ |
@PrePassivate | ○ |
@Interceptors | ○ |
@AroundInvoke | ○ |
@ExcludeDefautInterceptors | ○ |
@ExcludeClassInterceptors | ○ |
@Timeout | × |
@ApplicationException | ○ |
@EJB | × |
@EJBs | × |
@WebService | ○ |
@WebServiceProvider | ○ |
@PersistenceContext | ○ |
@PersistenceContexts | ○ |
@PersistenceProperty | ○ |
@PersistenceUnit | ○ |
@PersistenceUnits | ○ |