[
https://issues.apache.org/jira/browse/ARIES-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15953703#comment-15953703
]
Guillaume Nodet commented on ARIES-1559:
----------------------------------------
See the following example:
https://github.com/apache/aries/blob/55fd282b4803f7451886224a0940dfd17bcf06bb/blueprint/blueprint-core/src/test/resources/test-staticvalues.xml
> 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)