Hi
To get rid of the usage of slingsettings to determine run mode, author or publish , what is the approach adobe might have finalized by now. I read posts and arguments with counter arguments on it's usage but do we have a permanent backfill for the api by adobe?
if not, is the suggested approach to use a component with config that returns author or publisher and have it in specific config.environment.author (setting the properties within the config as author and environment(stage/prod/dev)) and config.environment.pub (setting the properties within the config as pub and environment(stage/prod/dev)).This config then be used within models and servlets?
Want to hear opinions thoughts and best practices around it. Do not want to create something that will not be reusable in the future.
thanks,
Solved! Go to Solution.
Views
Replies
Total Likes
You can have OSGi configuration and create a utility method which determines the run mode from the configuration
This would be an ideal approach and easy to refactoring in future if something comes up by Adobe
Hope this is helpful
You can have OSGi configuration and create a utility method which determines the run mode from the configuration
This would be an ideal approach and easy to refactoring in future if something comes up by Adobe
Hope this is helpful
@Mani_kumar_ Thanks.. just sent a private chat to align since i feel we are ultimately thinking the same?
Views
Replies
Total Likes
Views
Likes
Replies