cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6113) allow a kind of chain in org.apache.cxf.common.util.ClassHelper
Date Fri, 21 Nov 2014 18:17:34 GMT

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

Sergey Beryozkin commented on CXF-6113:
---------------------------------------

I've added a ClassUnwrapper interface but at this stage it is checked and if it is available
as a bus property then ClassHelper will delegate to it, otherwise it would work as before.
We can eventually support the chaining too but I'm not sure how realistic it is to have the
chains of disparate AOP systems :-), but as I said it would be easy enough to do the chaining
later on. Please experiment when you get a chance with a single unwrapper and let me know
if that will work

Thanks   

> allow a kind of chain in org.apache.cxf.common.util.ClassHelper
> ---------------------------------------------------------------
>
>                 Key: CXF-6113
>                 URL: https://issues.apache.org/jira/browse/CXF-6113
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.2
>            Reporter: Romain Manni-Bucau
>            Priority: Trivial
>
> Hi
> today org.apache.cxf.common.util.ClassHelper relies on spring aop or no-op logic. Would
be great to be able to enrich it (actually I guess it should be done from the bus or server
level).
> Use cases: EJB, CDI, ...any other IoC container or interception solution.
> I think a chain and an algorithm like the next one would not be so bad "while (wasUnwrap)
{  for (Unwraper u : unwrappers) { Object unwrapped = u.unwrap(o); wasUnwrap = unwraped !=
o; o = unwrapped; } } return unwrapped;"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message