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 2019/04/26 10:51:00 UTC

[jira] [Created] (CAMEL-13460) camel3 - DefaultEndpoint - Should be singleton by default

Claus Ibsen created CAMEL-13460:
-----------------------------------

             Summary: camel3 - DefaultEndpoint - Should be singleton by default
                 Key: CAMEL-13460
                 URL: https://issues.apache.org/jira/browse/CAMEL-13460
             Project: Camel
          Issue Type: Improvement
            Reporter: Claus Ibsen
             Fix For: 3.0.0, 3.0.0-M3


We should
{code}
    @Override
    public boolean isSingleton() {
        // lets be singleton by default as otherwise end-users may mistakenly write components
        // which are not singleton. Only in very rare situations would you need to be non-singletons.
        return true;
    }
{code}

in DefaultEndpoint, and then remove it from all the components that are also singleton. I think its possible only camel-ftp that may not be.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)