public interface ExampleService {
void execute();
}
@SPI("exampleService")
public class ExampleServiceImpl implements ExampleService {
@Override
public void execute() {
}
}
public interface ExampleService {
@SPI("exampleService")
void execute();
}
public class ExampleServiceImpl1 implements ExampleService {
@Override
@SPI("exampleService1")
public void execute() {
}
}
public class ExampleServiceImpl2 implements ExampleService {
@Override
@SPI("exampleService2")
public void execute() {
}
}
@SPI(value = "exampleService", priority = 1)
public class ExampleServiceImpl1 implements ExampleService {
// ...
}
@SPI(value = "exampleService", priority = 2)
public class ExampleServiceImpl2 implements ExampleService {
// ...
}