I can only use string binding here, enableRequestValidation should be always string, put in my bean i want to use boolean, how can i achieve this using property-placeholder bindings?
<property-placeholder
persistent-id="JsonValidator"
update-strategy="reload" placeholder-prefix="$[" placeholder-suffix="]">
<default-properties>
<property name="enableRequestValidation" value="false"></property>
</default-properties>
</property-placeholder>
<bean id="jsonSchemaRegistration" class="rest.service.impl.jsonschema.JsonSchemaDynamicFeatureImpl">
<property name="enableRequestValidation" value="$[enabledRequestValidation]"></property>
</bean>
Addition the exception is like below
2016-11-08 11:25:34,944 | ERROR | Thread-74 | BlueprintContainerImpl
| 15 - org.apache.aries.blueprint.core - 1.4.4 | Unable to start blueprint
container for bundle core.rest.service.impl/0.6.0.SNAP
SHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting
property: PropertyDescriptor <name: enableRequestValidation, getter: class core.rest.service.impl.jsonschema.JsonSchemaDynamicFeatureI
mpl.isEnableRequestValidation(), setter: [class JsonSchemaDynamicFeatureImpl.setEnableRequestValidati
on(boolean)]
at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecip
e.java:939)[15:org.apache.aries.blueprint.core:1.4.4]
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRec
ipe.java:905)[15:org.apache.aries.blueprint.core:1.4.4]
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRec
ipe.java:886)[15:org.apache.aries.blueprint.core:1.4.4]