この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
Hi All
Greetings. Hope all of you are staying safe and healthy and keeping your people safe. I was going through the documentation for use api. https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/use-api-java.html?lang=en I saw this interesting note recommended by Adobe, which said
A local Java use-class is recommended when the use-class is specific to the component in question.
A bundle Java use-class is recommended when the Java code implements a service that is accessed from multiple HTL components.
I was wondering what is exactly the best practice. I personally use only bundle Java use-class (Mostly Sling Models) for all the backend processing , even when it is single component specific. For quick fixes, I sometimes use Javascript Use-API rather than a local Java use-class. What are your best practices in this regard ? I am trying to understand what I am doing wrong in this case ?
Thanks and Stay Safe
Veena ✌
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
Best practice is to keep all Java code in bundles. Then the compilation is done during build-time and not during runtime.
Best practice is to keep all Java code in bundles. Then the compilation is done during build-time and not during runtime.
表示
返信
いいね!の合計
表示
返信
いいね!の合計