What are the basic SCR Annotations used for creating an OSGI component?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Nov 17, 2022

 

The Basic SCR Annotation used for developing a component or service in OSGi is listed and explained below:

  • @Service
  • @Property
  • @Reference
  • @Component

 

@Service indicates the service interface that is provided by the component.

@Property indicates a property that can be used in the class.

@Reference injects a service into the component.

@Component defines the class as a component.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    AEM Interview Questions

    What is Adobe AEM?

    The full form of AEM is Adobe Experience Manager. It is a comprehensive content management solution for building websites, mobile apps, and forms. AEM makes it easy to manage your marketing content an...

    AEM Interview Questions

    What is AEM testing?

    AEM provides a testing framework named Bobcat for automating tests for your AEM UI. You can write and run UI tests directly in a web browser by using this framework that provides a Javascript API for ...

    AEM Interview Questions

    What is AEM Explorer?

    Sometimes, Application Explorer Missions is abbreviated as AEM Explorer which is designed for readers with low vision, physical challenges, and learning and attentional difficulties who may benefit fr...