Service
This annotation is used to indicate that a class is a service which could be provided via ServiceLoader.load
Implementations of these services are identified by ServiceProvider annotation.
This annotation could be applied only to interfaces or abstract classes.
Usage:
@Service
interface SimpleService {
fun saySomethingSweet()
}
Content copied to clipboard