```xml <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.ipojo.annotations</artifactId> <version>1.12.1</version> </dependency> ``` ```java @Component public class MyComponent { @Property private String name; @Requires private MyService myService; @Validate public void start() { System.out.println("Component started"); } @Invalidate public void stop() { System.out.println("Component stopped"); } } ``` ```xml <ipojo> <instance component="com.example.MyComponent"> <property name="name" value="example" /> </instance> </ipojo> ```