Hi all,

I am migrating an application from Spring dsl to blueprint.

This worked previously:

        <bean id="webServiceRequestCreator"
class="com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator">
                <property name="extractall" value="${aiextractor.extractall}"/>
"/>
        </bean>

in conjunction with this bean method:

        public void setExtractall(boolean extractall)
        {
                this.extractall = extractall;
        }

So the value was being converted to a boolean with some built in type
converter.

With the blueprint version, I get this error when I try to deploy:

org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: extractall, getter: null,
setter: [class
com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator.setExtractall(boolean)]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)
.
.
.
Caused by: java.lang.RuntimeException: Invalid boolean value:
${aiextractor.extractall}

Does this mean that I have to modify my beans to always use Strings and do
my own Boolean.parseBoolean(String) on the input?  Or is there a way to
invoke a converter?

Thanks,

Carl




--
View this message in context: 
http://camel.465427.n5.nabble.com/cast-of-property-value-for-blueprint-osgi-implementation-tp5739834.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to