You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/05/09 13:29:00 UTC

[jira] [Resolved] (CAMEL-22054) camel-jbang - Allow @Inject/@Produce bean methods to not be public

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

Claus Ibsen resolved CAMEL-22054.
---------------------------------
    Resolution: Fixed

> camel-jbang - Allow @Inject/@Produce bean methods to not be public
> ------------------------------------------------------------------
>
>                 Key: CAMEL-22054
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22054
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.12.0
>
>
> So you can create a bean from a method that is not public, such as
>  
>     @jakarta.inject.Inject
>     javax.sql.DataSource datasource() {
> ...
>     }
>  
> As of today you need to have public javax.sql.DataSource datasource() {



--
This message was sent by Atlassian Jira
(v8.20.10#820010)