Expand my Community achievements bar.

Prefer runmode-based configuration over hardcoded runmodes

Avatar

Employee Advisor

Every now and then I come across code, which should be executed only on certain environments and therefor often relies on hardcoded runmode; while this often works, it's very unflexible; changing this behaviour (only for experimenting, bugfixing or troubleshooting) is not possible. You are better of if you make it configurable via runmode-based OSGI configuration.

I blogged about it:

AEM coding pattern: Run-mode specific code | Things on a content management system

1 Reply

Avatar

Administrator

Good Read!!

HiwebbCBS kgio selvaganesh bipinb4448661 greg_leppert chetanvajre2014 Omega-Psi Newsgroup_User LinearGradient vij8 Vikram  kindaian timlwhite monikam6817093 sivaprasadreddys sherybedrock Tom%20Fought

Based on your question asked earlier in the AEM community related to run mode this is a recommended read for you all.

~kautuk



Kautuk Sahni