Hi Ricardo,
I wasn't able to inject my properties too :-D
So I wrote this method
[code]/**
* Get a system propery from *-mangnolia.properties file
*
* @param propertyName The name of the property.
* @param defaultValue The default value to use, if property not found
*
* @return The value of the property or the defaultValue.
*/
private String getProperty(final String propertyName, final String
defaultValue) {
final MagnoliaConfigurationProperties configurationProperties =
Components
.getComponent(MagnoliaConfigurationProperties.class);
final String property =
configurationProperties.getProperty(propertyName);
if (property == null) {
return defaultValue;
}
return property;
}[/code]
Have fun!
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=96ed3e7b-4825-4eb9-8ae7-7bf3a3eb4245
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------