Annotation Interface ChronosScheduler


@Target(TYPE) @Retention(RUNTIME) public @interface ChronosScheduler
스캔 대상 클래스를 지정하기 위한 마커 어노테이션
     
 @ChronosScheduler
 public class SystemJobs {

     @Task(every = 1, unit = TimeUnit.HOURS, initialDelay = 5)
     public void clearTemporaryFiles() {
         System.out.println("임시 파일 청소 중...");
     }
 }

 // 메인 메서드에서 패키지 스캔 시작
 Chronos.startScan("com.example.app.jobs");