Can I call java from sightly?
I am using AEM6.1. is there any way to call our own java classes and methods from sightly without following the below approach:
<div data-sly-use.info="Info">
<h1>${info.lowerCaseTitle}</h1>
<p>${info.lowerCaseDescription}</p>
</div>
package apps.my_example.components.info;
import com.adobe.cq.sightly.WCMUse;
public class Info extends WCMUse {
.......................
.......................
}
Can't I call my own custom java classes without importing ( import com.adobe.cq.sightly.WCMUse; ). Is there any method or other approach available in sightly.
Thank you,
Arnab