You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Ivan St. Ivanov (JIRA)" <ji...@apache.org> on 2014/02/02 22:50:09 UTC

[jira] [Commented] (OPENEJB-679) Validation: Warn on security annotations applied to callbacks

    [ https://issues.apache.org/jira/browse/OPENEJB-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889077#comment-13889077 ] 

Ivan St. Ivanov commented on OPENEJB-679:
-----------------------------------------

I hope I did it right with the patch this time ;)

> 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
>    Affects Versions: 3.1.x
>            Reporter: David Blevins
>            Assignee: Ivan St. Ivanov
>             Fix For: 3.1.x
>
>         Attachments: security.annotations.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)