Annotation Type ServiceImplementation


@Target(METHOD) @Retention(RUNTIME) public @interface ServiceImplementation
Used to bind methods to services, like such:

 @Nullable
 @ServiceImplementation(YourService.class)
 public YourResult handle(YourContext) {
      return result;
 }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Service<?,?>>
    The service class that the method implements
  • Element Details

    • value

      Class<? extends Service<?,?>> value
      The service class that the method implements
      Returns:
      Service to implement