title: Inject bean into enum
body: <p>I have the DataPrepareService that prepare data for reports and I have an Enum with report types, and I need to inject ReportService into Enum or have access to ReportService from enum.</p>
  
  <p>my service:
  </p>
  
  <pre><code>@Service
  public class DataPrepareService {
      // my service
  }
  </code></pre>
  
  <p>my enum:
  </p>
  
  <pre><code>public enum ReportType {
  
      REPORT_1("name", "filename"),
      REPORT_2("name", "filename"),
      REPORT_3("name", "filename")
  
      public abstract Map&lt;String, Object&gt; getSpecificParams();
  
      public Map&lt;String, Object&gt; getCommonParams(){
          // some code that requires service
      }
  }
  </code></pre>
  
  <p>I tried to use </p>
  
  <pre><code>@Autowired
  DataPrepareService dataPrepareService;
  </code></pre>
  
  <p>, but it didn't work</p>
  
  <p>How can I inject my service into enum?</p>