You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Piotr Klimczak (Jira)" <ji...@apache.org> on 2021/05/12 07:03:00 UTC

[jira] [Updated] (ARIES-2045) Blueprint Spring not able to resolve bean by type

     [ https://issues.apache.org/jira/browse/ARIES-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated ARIES-2045:
----------------------------------
    Description: 
Blueprint Spring not able to resolve bean by type

The problem is in: BlueprintBeanFactory.SpringMetadata in method:
{code:java}
public String getClassName() {
    return null;
} {code}
Simple fix is to do:
{code:java}
public String getClassName() {
    return getBeanDefinition(beanName).getBeanClassName();
} {code}
This solves my problem with trying to get Camel 3 working with spring camel context and resolve BridgePropertyPlaceholderConfigurer correctly.

PR to follow.

  was:
Blueprint Spring not able to resolve bean by type

The problem is in: BlueprintBeanFactory.SpringMetadata in method:
{code:java}
public String getClassName() {
    return null;
} {code}
Simple fix is to do:
{code:java}
public String getClassName() {
    return getBeanDefinition(beanName).getBeanClassName();
} {code}
This solves my problem with trying to get Camel 3 working with spring camel context and resolve BridgePropertyPlaceholderConfigurer correctly.


> Blueprint Spring not able to resolve bean by type
> -------------------------------------------------
>
>                 Key: ARIES-2045
>                 URL: https://issues.apache.org/jira/browse/ARIES-2045
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-spring-1.0.0
>            Reporter: Piotr Klimczak
>            Priority: Major
>             Fix For: blueprint-spring-1.0.0
>
>
> Blueprint Spring not able to resolve bean by type
> The problem is in: BlueprintBeanFactory.SpringMetadata in method:
> {code:java}
> public String getClassName() {
>     return null;
> } {code}
> Simple fix is to do:
> {code:java}
> public String getClassName() {
>     return getBeanDefinition(beanName).getBeanClassName();
> } {code}
> This solves my problem with trying to get Camel 3 working with spring camel context and resolve BridgePropertyPlaceholderConfigurer correctly.
> PR to follow.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)