You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2015/04/02 09:55:52 UTC

[jira] [Commented] (CAMEL-8583) CamelContext.getEndpointRegistry() should return EndpointRegistry, but returns DefaultEndpointRegistry which is EndpointRegistry

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

Willem Jiang commented on CAMEL-8583:
-------------------------------------

Why do you need to access the EndpointRegistry?  
It's an internal API and we don't want user to mess up with the Registry.

> CamelContext.getEndpointRegistry() should return EndpointRegistry<String>, but returns DefaultEndpointRegistry which is EndpointRegistry<EndpointKey>
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8583
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8583
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.15.0
>            Reporter: Iikku Mattila
>            Priority: Blocker
>
> I have org.apache.camel.spring.javaconfig.CamelConfiguration -instance, in which I setup the camel context.
> In setupCamelContext(CamelContext camelContext) I'm trying
> camelContext.getEndpointRegistry().put("name", endpoint);
> which fails, because CamelContext.getEndpointRegistry() returns DefaultEndpointRegistry which is EndpointRegistry<EndpointKey> and thus only has method put(EndpointKey key, Endpoint endpoint) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)