You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/05/20 08:42:00 UTC

[jira] [Resolved] (ARIES-1787) Support "around" functionality when proxying an object

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

Jean-Baptiste Onofré resolved ARIES-1787.
-----------------------------------------
    Resolution: Fixed

> Support "around" functionality when proxying an object
> ------------------------------------------------------
>
>                 Key: ARIES-1787
>                 URL: https://issues.apache.org/jira/browse/ARIES-1787
>             Project: Aries
>          Issue Type: Improvement
>          Components: Proxy
>            Reporter: AmirMohammad Vosough
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: proxy-api-1.1.1, proxy-impl-1.1.7
>
>
> Right now the InvocationListener only has 3 methods for before execution, after successful and after exception thrown execution.
> Sometimes we need something like AspectJ's "around" functionality where we can prevent the actual method execution. The only option we have right now is to throw exception on preInvoke but that doesn't allow normal object returning of method execution. An example scenario which can not be done now is to proxy an object and cache the result of the method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)