Secure datasource password in applicationContext

Is it possible to use a secure (non plain text) datasource password in applicationContext.xml similar to WildFly credential-reference

Example for WildFly datasource:

<datasource jndi-name="java:jboss/jdbc/MyDatabase" pool-name="MyDatabase">
    <connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=myDatabase</connection-url>
    <driver>SQLJDBC</driver>
    <security>
        <user-name>demo</user-name>
        <credential-reference store="credentials" alias="myDatabase-demo-password"/>
    </security>
</datasource>