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:11:00 UTC

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

Claus Ibsen created CAMEL-22054:
-----------------------------------

             Summary: 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
             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)