AEM service impl class v/s Java Utility class or methods | Community
Skip to main content
Level 7
February 2, 2024
Solved

AEM service impl class v/s Java Utility class or methods

  • February 2, 2024
  • 2 replies
  • 962 views

Hello All,

 

Difference between the use cases of AEM service class (i mean service impl class), Java utility classes.

Even for the service impl class, we are passing the resource resolver object, other resources. Same case for Java utility methods. Then, in which scenario, we need to prefer AEM service impl classes over Java utility class (or methods). 

I know one point is: We can get Run mode specific config files details in service impl class. Where as these values to passed if you are calling java utility methods.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SureshDhulipudi
Community Advisor
SureshDhulipudiCommunity AdvisorAccepted solution
Community Advisor
February 2, 2024
kautuk_sahni
Community Manager
Community Manager
February 6, 2024

@mahesh_gunaje Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni