Accessing values from Alfresco's alfresco-global.properties file

alfresco

Solution

The Spring bean is called "global-properties" and it's a java.util.Properties type

So you can inject it like that:

<property name="properties">
  <ref bean="global-properties"/>
</property

and add a properties property of type java.util.Properties to your bean

Problem

Lets say I create a custom property called "test123" inside of the alfresco-global.properties file. Is there a custom object or some other way which I can use to access its value inside of a Java bean in Alfresco?

Original source