[
https://issues.apache.org/jira/browse/CAMEL-11252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17599382#comment-17599382
]
Claus Ibsen commented on CAMEL-11252:
-------------------------------------
Yes a helper is likely better or if we only add a single new method on
CamelContext
> 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
> Priority: Minor
> Fix For: Future
>
>
> 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
(v8.20.10#820010)