title: Using @Autowired outside of Component
body: <p>I have a Service I would like to use on different places in my application: </p>
  
  <pre><code>@Service
  public class ActionListMain  { /* .... */ }
  </code></pre>
  
  <p>First I want to use in an entity context:</p>
  
  <pre><code>@Entity
  @Inheritance(strategy = InheritanceType.JOINED)
  @Table(name = "myTable")
  public class myTable {
      @Autowired
      @Transient
      private static ActionListMain allActions;
      /* .... */
  }
  </code></pre>
  
  <p>And I want to also use it in other non-annotated classes as for example:</p>
  
  <pre><code>public class Action {
      @Autowired
      private ActionListMain actionListMain;
  }
  </code></pre>
  
  <p>On the other side I have a StartupComponent where it is wired as expected:</p>
  
  <pre><code>@Component
  public class StartupComponent {
      @Autowired
      private ActionListMain actionListMain;
  }
  </code></pre>
  
  <p>Why does it is NULL in all the other classes?</p>