You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/04/03 16:01:41 UTC

[jira] [Resolved] (ARIES-1559) Support injection of static values to bean properties or constructor's args

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

Guillaume Nodet resolved ARIES-1559.
------------------------------------
       Resolution: Fixed
    Fix Version/s: blueprint-core-1.8.2

Committing to https://svn.apache.org/repos/asf/aries/trunk ...
	A	blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/ExtPlaceholderTest.java
	A	blueprint/blueprint-core/src/test/resources/test-staticvalues.xml
	M	blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ext/PropertyPlaceholder.java
	M	blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/TestBlueprintContainer.java
Committed r1790017


> Support injection of static values to bean properties or constructor's args
> ---------------------------------------------------------------------------
>
>                 Key: ARIES-1559
>                 URL: https://issues.apache.org/jira/browse/ARIES-1559
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Viktor Kozlov
>            Assignee: Guillaume Nodet
>             Fix For: blueprint-core-1.8.2
>
>
> Quite often there is a need to initialize my functional classes constants values. The Spring framework can be used for this expression language. It would be nice to have similar functionality in Blueprint.
> For example I want to use this expression:
> <bean id="credentialsMatcher" class="org.apache.shiro.authc.credential.HashedCredentialsMatcher">
> <property name="hashAlgorithmName" value="#{T(org.apache.shiro.crypto.hash.Md5Hash).ALGORITHM_NAME}" />
> </bean>
> instead of this one:
> <bean id="credentialsMatcher" class="org.apache.shiro.authc.credential.HashedCredentialsMatcher">
> <property name="hashAlgorithmName" value="MD5" />
> </bean>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)