camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5649) Add no args constructor to Builder support class which is required by CDI
Date Wed, 26 Sep 2012 13:03:09 GMT

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

Romain Manni-Bucau commented on CAMEL-5649:
-------------------------------------------

public class VetoExtension implements Extension
{
    protected void vetoInternalsBean(@Observes ProcessAnnotatedType<Object> processAnnotatedType)
    {
        Class beanClass = processAnnotatedType.getAnnotatedType().getJavaClass();
        if(BuilderSupport.class.isAssignableFrom(beanClass))
        {
            processAnnotatedType.veto();
        }
    }
}
                
> Add no args constructor to Builder support class which is required by CDI
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-5649
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5649
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Charles Moulliard
>            Assignee: Charles Moulliard
>
> JBoss Weld complaints that "org.apache.Camel.builder.BuilderSupport" is not proxyable
as there is no by default constructor with no args. 
> "WELD-001435 Normal scoped bean class org.apache.camel.builder.BuilderSupport is not
proxyable because it has no no-args constructor "

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message