Tuesday, July 8, 2014

Inject OSGi services in Sling models (Pojos) - Sling model way

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.

5 comments: