[ 
https://issues.apache.org/jira/browse/OPENEJB-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Blevins updated OPENEJB-679:
----------------------------------

    Description: 
Security annotations applied to the following callbacks are ignored:

- PostConstruct
- PreDestroy
- PostActivate
- PrePassivate
- AroundInvoke

These methods are invoked by the container during the bean's lifecycle and 
cannot be restricted.  Issue warnings that the will be ignored if the user has 
attempted to restrict them.

A sort of strange not is that if the user exposes these callback methods from 
their business interface then they also double as business methods, in which 
case they are restrictable.


> Validation: Warn on security annotations applied to callbacks
> -------------------------------------------------------------
>
>                 Key: OPENEJB-679
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-679
>             Project: OpenEJB
>          Issue Type: Sub-task
>            Reporter: David Blevins
>
> Security annotations applied to the following callbacks are ignored:
> - PostConstruct
> - PreDestroy
> - PostActivate
> - PrePassivate
> - AroundInvoke
> These methods are invoked by the container during the bean's lifecycle and 
> cannot be restricted.  Issue warnings that the will be ignored if the user 
> has attempted to restrict them.
> A sort of strange not is that if the user exposes these callback methods from 
> their business interface then they also double as business methods, in which 
> case they are restrictable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to