Annotation Interface OnEnable


@Target(METHOD) @Retention(RUNTIME) public @interface OnEnable
Marks a method to be executed when the service is enabled.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    The priority of this method.
  • Element Details

    • after

      Class<?>[] after
      The priority of this method. The higher the priority, the earlier it will be executed
      Returns:
      The priority of this method
      Default:
      {}