You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Viktor Kozlov (JIRA)" <ji...@apache.org> on 2016/06/02 14:12:59 UTC
[jira] [Created] (ARIES-1559) Support injection of static values to
bean properties or constructor's args
Viktor Kozlov created ARIES-1559:
------------------------------------
Summary: 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
Fix For: blueprint-core-1.7.0
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.4#6332)