@DSComponent
public interface MyService {
void doSomething();
}
public class MyServiceImpl implements MyService {
@DSReference
private OtherService otherService;
public void doSomething() {
otherService.doSomething();
}
}
<ds:annotation-config package="com.example.service" />
public class Application {
public static void main(String[] args) {
DSFramework.init();
//...
}
}