Foren

Property Files - How to implement a central Property File

thumbnail
Yves LeGrand, geändert vor 12 Jahren.

Property Files - How to implement a central Property File

Regular Member Beiträge: 156 Beitrittsdatum: 18.11.09 Neueste Beiträge
Hello again.

Everyone can imagine when devloping portlets, services, hooks and so on, that one wants a central file where the devleopers can write the properties of their components into.
A file like the portal-ext.properties. Later on, the administrator can change some of those properties within these file.

We are using a service, i.e. a PropertyLocalServiceUtil. But maybe this is a little bit oversized for this. What do you think?

How would you implement this? Does Liferay already provide an implementation for own properties which can be used?

Please let me know, i am very interesed on this.

Thanks a lot.

Greetings,
Yves
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Property Files - How to implement a central Property File

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
You can add your own properties to the portal-ext.properties file and leverage the Liferay classes to read/use those properties...
thumbnail
Yves LeGrand, geändert vor 12 Jahren.

RE: Property Files - How to implement a central Property File (Antwort)

Regular Member Beiträge: 156 Beitrittsdatum: 18.11.09 Neueste Beiträge
Hi David.

It works. Thank you.

Regards,
Yves