yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.qianwen.smart.core.auto.common;
 
import com.qianwen.smart.core.auto.annotation.AutoContextInitializer;
import com.qianwen.smart.core.auto.annotation.AutoFailureAnalyzer;
import com.qianwen.smart.core.auto.annotation.AutoListener;
import com.qianwen.smart.core.auto.annotation.AutoRunListener;
 
public enum BootAutoType {
  CONTEXT_INITIALIZER(AutoContextInitializer.class.getName(), "org.springframework.context.ApplicationContextInitializer"),
  LISTENER(AutoListener.class.getName(), "org.springframework.context.ApplicationListener"),
  RUN_LISTENER(AutoRunListener.class.getName(), "org.springframework.boot.SpringApplicationRunListener"),
  FAILURE_ANALYZER(AutoFailureAnalyzer.class.getName(), "org.springframework.boot.diagnostics.FailureAnalyzer"),
  COMPONENT("org.springframework.stereotype.Component", "org.springframework.boot.autoconfigure.EnableAutoConfiguration");
  
  private final String annotationName;
  
  private final String configureKey;
  
  BootAutoType(String annotationName, String configureKey) {
    this.annotationName = annotationName;
    this.configureKey = configureKey;
  }
  
  public final String getAnnotationName() {
    return this.annotationName;
  }
  
  public final String getConfigureKey() {
    return this.configureKey;
  }
}