Create the injection point in the sling model class with @Source annotation & assign "osgi-services" as a value to the source annotation.
By this we can inject the below OSGi service in the Sling Model class.
By this we can inject the below OSGi service in the Sling Model class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service(value = GreetService.class) | |
@Component( metatype = true, immediate = true ) | |
public class GreetServiceImpl implements GreetService { | |
@Override | |
public String greet(String greeter) { | |
return String.format( "Hallo %s, Wel Come to Sling Model", greeter ); | |
} | |
} |
Such a Great Article!! I learned something new from your blog. Amazing stuff. I would like to follow your blog frequently. thanks lot!!
ReplyDeleteandroid training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
Nice Blog, Keep post more Blogs Thanks for sharing.clearly explained the multi tools latest version in androidJava training in chennai
ReplyDeletepython training in chennai
web designing and development training in chennai
selenium training in chennai
digital-marketing training in chennai
This post is so interactive and informative.keep update more information...
ReplyDeleteRPA Training in Tambaram
RPA Training in Chennai
Fon Perde Modelleri
ReplyDeleteMobil onay
mobil ödeme bozdurma
nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
Dedektör
Kurma web sitesi
ASK KİTAPLARİ
Smm Panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
Beyazesyateknikservisi.com.tr
SERVİS
tiktok jeton hilesi