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 2017/05/10 07:28:04 UTC

[jira] [Commented] (CAMEL-11252) camel-core : allow to retrieve components/endpoints/etc list with a predicate

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

Claus Ibsen commented on CAMEL-11252:
-------------------------------------

What is the use-case for this?

I am asking because the API on CamelContext is already big. And its API should be limited and also mostly targeted towards Camel end users. We should likely revisit some of its APIs for Camel 3.0.

We have CamelContextHelper which has various helper methods that component developers and for camel internals to use. I wonder what you want is not a better fit there.

> camel-core : allow to retrieve components/endpoints/etc list with a predicate
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-11252
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11252
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Luca Burgazzoli
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> As today components/endpoints and so on can be retrieved/removed from the camel context by id but it would be nice to have a more flexible way to retrieve them like:
> {code:java}
> List<Component> components = context.getComponents(id, component -> {
>     return component instanceof IdAware;
> });
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)