I have this Singleton:
public enum Elvis { INSTANCE; private int age; public int getAge() { return age; } }
You can use Spring Expression Language:
<constructor-arg value = "#{elvis.age}" />
or without elvis bean:
elvis
<constructor-arg value = "#{T(com.xyz.Elvis).INSTANCE.age}" />