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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15953700#comment-15953700 ] 

ASF subversion and git services commented on ARIES-1559:
--------------------------------------------------------

Commit 1790017 from [~gnt] in branch 'aries/trunk'
[ https://svn.apache.org/r1790017 ]

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

> 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)