You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Nick Dmnick <Dm...@skblab.ru> on 2017/03/31 12:19:06 UTC
Searching analog of getBean (Spring) in Blueprint
Hello, Camel community.
What is an analog of Spring' getBean method in Blueprint? Can't find in
google.
What I use now in Spring:
private ApplicationContext appContext;
ITProfixLogger sli= (ITProfixLogger) appContext.getBean("logW");
What I need: convert it in Blueprint.
--
View this message in context: http://camel.465427.n5.nabble.com/Searching-analog-of-getBean-Spring-in-Blueprint-tp5796781.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Searching analog of getBean (Spring) in Blueprint
Posted by Quinn Stevenson <qu...@pronoia-solutions.com>.
You get it from the Blueprint Container ( https://osgi.org/javadoc/r4v42/org/osgi/service/blueprint/container/BlueprintContainer.html#getComponentInstance(java.lang.String) <https://osgi.org/javadoc/r4v42/org/osgi/service/blueprint/container/BlueprintContainer.html#getComponentInstance(java.lang.String)> )
> On Mar 31, 2017, at 6:19 AM, Nick Dmnick <Dm...@skblab.ru> wrote:
>
> Hello, Camel community.
>
> What is an analog of Spring' getBean method in Blueprint? Can't find in
> google.
>
> What I use now in Spring:
>
> private ApplicationContext appContext;
> ITProfixLogger sli= (ITProfixLogger) appContext.getBean("logW");
>
> What I need: convert it in Blueprint.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Searching-analog-of-getBean-Spring-in-Blueprint-tp5796781.html
> Sent from the Camel - Users mailing list archive at Nabble.com.