[
https://issues.apache.org/jira/browse/ARIES-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Przybysz closed ARIES-462.
----------------------------------
Closing resolved issues with Won't Fix resolution
> Allow cm:property-placeholder substitution within bean attributes
> -----------------------------------------------------------------
>
> Key: ARIES-462
> URL: https://issues.apache.org/jira/browse/ARIES-462
> Project: Aries
> Issue Type: Improvement
> Components: Blueprint
> Affects Versions: 0.3
> Reporter: Craig Muchinsky
> Assignee: Guillaume Nodet
> Priority: Minor
>
> To allow a user to swap out a bean implementation via configuration, it would
> be nice if cm:property-placeholder substitution worked within bean attributes
> (specifically 'class' but I suppose a case could be made for other fields as
> well). For example:
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0">
> <cm:property-placeholder persistent-id="foo">
> <cm:default-properties>
> <cm:property name="foo.classname" value="com.foo.DefaultFoo"/>
> </cm:default-properties>
> </cm:property-placeholder>
> <bean id="foo" class="${foo.classname}"/>
> </blueprint>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)